OSDN Git Service

iio:magnetometer: st_magn: add LSM9DS1 support
authorMartin Kelly <martin@martingkelly.com>
Fri, 26 Oct 2018 02:38:10 +0000 (19:38 -0700)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 11 Nov 2018 15:29:43 +0000 (15:29 +0000)
commit0d92aa2c272faea47cd5e9acb482acdb9eed2c1d
treedf91e73da99732389273d972fde17d12ce74c0e9
parent53759e259da43fae0e5322d227ffce60857f2828
iio:magnetometer: st_magn: add LSM9DS1 support

Update the sensor settings to support the LSM9DS1 sensor. Although the
LSM9DS1 accelerometer and gyroscope are coupled together to use the same
FIFO, the magnetometer is separate and can be cleanly supported without
refactoring the existing driver.

Signed-off-by: Martin Kelly <martin@martingkelly.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/magnetometer/st_magn.h
drivers/iio/magnetometer/st_magn_core.c
drivers/iio/magnetometer/st_magn_i2c.c
drivers/iio/magnetometer/st_magn_spi.c