summaryrefslogtreecommitdiff
path: root/drivers/iio/magnetometer/st_magn.h
diff options
context:
space:
mode:
authorLorenzo Bianconi <lorenzo.bianconi83@gmail.com>2017-08-16 20:02:52 +0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2017-08-17 17:51:39 +0300
commitd0b7fea58ab91d6363430cbc00b1d1e1b1996552 (patch)
tree4095ada5faec097ea265c8b71e41a965b5d2d99a /drivers/iio/magnetometer/st_magn.h
parent3f09b8d2ea9940041557fffd55244da5bc434a99 (diff)
downloadlinux-d0b7fea58ab91d6363430cbc00b1d1e1b1996552.tar.xz
iio: magnetometer: add support to LIS2MDL
add support to STMicroelectronics LIS2MDL magnetometer in st_magn framework http://www.st.com/resource/en/datasheet/lis2mdl.pdf Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@st.com> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> 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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/magnetometer/st_magn.h b/drivers/iio/magnetometer/st_magn.h
index 9daca4681922..8fe51ce427bd 100644
--- a/drivers/iio/magnetometer/st_magn.h
+++ b/drivers/iio/magnetometer/st_magn.h
@@ -19,6 +19,7 @@
#define LSM303DLM_MAGN_DEV_NAME "lsm303dlm_magn"
#define LIS3MDL_MAGN_DEV_NAME "lis3mdl"
#define LSM303AGR_MAGN_DEV_NAME "lsm303agr_magn"
+#define LIS2MDL_MAGN_DEV_NAME "lis2mdl"
int st_magn_common_probe(struct iio_dev *indio_dev);
void st_magn_common_remove(struct iio_dev *indio_dev);