diff options
author | Lorenzo Bianconi <lorenzo.bianconi83@gmail.com> | 2017-06-20 20:42:45 +0300 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2017-07-01 12:16:52 +0300 |
commit | 13718564167da80b6169809185b4c5a32497d0c1 (patch) | |
tree | 17aaebd67c2604d0a4eeadecbefc765c33604562 /drivers/iio/magnetometer | |
parent | 53d7d8139f652f87e1d9aa877007e757d08fc59e (diff) | |
download | linux-13718564167da80b6169809185b4c5a32497d0c1.tar.xz |
iio: magnetometer: st_magn_core: enable multiread by default for LIS3MDL
Enable multiread by default for LIS3MDL since using I2C interface
the subaddr Msb is used to automatically increase the slave address
during multiple data read/write. In the same way, using SPI interface,
bit 1 in register address is used to enable auto-increment of the slave
address in multiple read/write.
Fixes: 872e79add756 (iio:magn: Add STMicroelectronics magn driver)
Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@st.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/magnetometer')
-rw-r--r-- | drivers/iio/magnetometer/st_magn_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/magnetometer/st_magn_core.c b/drivers/iio/magnetometer/st_magn_core.c index 8e1b0861fbe4..3573636bad8e 100644 --- a/drivers/iio/magnetometer/st_magn_core.c +++ b/drivers/iio/magnetometer/st_magn_core.c @@ -315,7 +315,7 @@ static const struct st_sensor_settings st_magn_sensors_settings[] = { }, }, }, - .multi_read_bit = false, + .multi_read_bit = true, .bootime = 2, }, { |