diff options
author | Martin Kelly <martin@martingkelly.com> | 2018-10-26 04:38:10 +0200 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2018-11-11 16:29:43 +0100 |
commit | 0d92aa2c272faea47cd5e9acb482acdb9eed2c1d (patch) | |
tree | df91e73da99732389273d972fde17d12ce74c0e9 /drivers/iio/magnetometer/st_magn.h | |
parent | iio: magnetometer: add clarifying comment (diff) | |
download | linux-0d92aa2c272faea47cd5e9acb482acdb9eed2c1d.tar.xz linux-0d92aa2c272faea47cd5e9acb482acdb9eed2c1d.zip |
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>
Diffstat (limited to 'drivers/iio/magnetometer/st_magn.h')
-rw-r--r-- | drivers/iio/magnetometer/st_magn.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/magnetometer/st_magn.h b/drivers/iio/magnetometer/st_magn.h index 8fe51ce427bd..bc14ad4f1b26 100644 --- a/drivers/iio/magnetometer/st_magn.h +++ b/drivers/iio/magnetometer/st_magn.h @@ -20,6 +20,7 @@ #define LIS3MDL_MAGN_DEV_NAME "lis3mdl" #define LSM303AGR_MAGN_DEV_NAME "lsm303agr_magn" #define LIS2MDL_MAGN_DEV_NAME "lis2mdl" +#define LSM9DS1_MAGN_DEV_NAME "lsm9ds1_magn" int st_magn_common_probe(struct iio_dev *indio_dev); void st_magn_common_remove(struct iio_dev *indio_dev); |