diff options
author | 2015-01-28 14:58:44 +0100 | |
---|---|---|
committer | 2015-02-28 11:26:54 +0000 | |
commit | 3608688973e8c85fbcd9b7e72b90e224b8d01526 (patch) | |
tree | 92782610135212c8225832d82d5fbaf3bf92544f /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | iio: common: ssp_sensors: Protect PM-only functions to kill warning (diff) | |
download | linux-dev-3608688973e8c85fbcd9b7e72b90e224b8d01526.tar.xz linux-dev-3608688973e8c85fbcd9b7e72b90e224b8d01526.zip |
iio: ak8975: fix AK09911 dependencies
ak8975 depends on I2C and GPIOLIB, so any symbols that selects
ak8975 must have the same dependency, or we get build errors:
drivers/iio/magnetometer/ak8975.c: In function 'ak8975_who_i_am':
drivers/iio/magnetometer/ak8975.c:393:2: error: implicit declaration of function 'i2c_smbus_read_i2c_block_data' [-Werror=implicit-function-declaration]
ret = i2c_smbus_read_i2c_block_data(client, AK09912_REG_WIA1,
^
drivers/iio/magnetometer/ak8975.c: In function 'ak8975_set_mode':
drivers/iio/magnetometer/ak8975.c:431:2: error: implicit declaration of function 'i2c_smbus_write_byte_data' [-Werror=implicit-function-declaration]
ret = i2c_smbus_write_byte_data(data->client,
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: 57e73a423b1e85 ("iio: ak8975: add ak09911 and ak09912 support")
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions