iio: magnetometer: st_magn_core: enable multiread by default for LIS3MDL
authorLorenzo Bianconi <lorenzo.bianconi83@gmail.com>
Tue, 20 Jun 2017 17:42:45 +0000 (19:42 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sat, 1 Jul 2017 09:16:52 +0000 (10:16 +0100)
commit13718564167da80b6169809185b4c5a32497d0c1
tree17aaebd67c2604d0a4eeadecbefc765c33604562
parent53d7d8139f652f87e1d9aa877007e757d08fc59e
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>
drivers/iio/magnetometer/st_magn_core.c