diff options
author | Crestez Dan Leonard <leonard.crestez@intel.com> | 2016-04-29 22:05:32 +0300 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2016-05-01 17:54:38 +0100 |
commit | a8175ba33542d625430b66a805ef315ea3b4e755 (patch) | |
tree | c28511b9b8fa1c0f0604cdc43cc519d23b87a378 /drivers/iio/accel/Kconfig | |
parent | fbced0e9465152d628ece5fd0d11de4e7a1f5ce5 (diff) |
iio: ak8975: Support adapters limited to BYTE_DATA
The device has simple 8-bit registers but the driver incorrectly uses
block or word reads without checking functionality bits.
Fix by using i2c_smbus_read_i2c_block_data_or_emulated instead of
i2c_smbus_read_i2c_block_data or i2c_smbus_read_word_data. This will
check functionality bits and use the fastest available transfer method.
Signed-off-by: Crestez Dan Leonard <leonard.crestez@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/accel/Kconfig')
0 files changed, 0 insertions, 0 deletions