summaryrefslogtreecommitdiff
path: root/drivers/iio/magnetometer/st_magn.h
diff options
context:
space:
mode:
authorLI Qingwu <Qing-wu.Li@leica-geosystems.com.cn>2021-03-17 09:39:02 +0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2021-03-25 22:13:52 +0300
commitc71cfe5576d1f6e2d53b5fb9b74438eadf097b05 (patch)
tree8423784e77ce1885d864e0f3fc690f339d33d6e5 /drivers/iio/magnetometer/st_magn.h
parentac62f90c9636c5b7004f6696a9e8c0d109509898 (diff)
downloadlinux-c71cfe5576d1f6e2d53b5fb9b74438eadf097b05.tar.xz
iio:magnetometer: Add Support for ST IIS2MDC
Add support for ST magnetometer IIS2MDC, an I2C/SPI interface 3-axis magnetometer. The patch was tested on the instrument with IIS2MDC via I2C interface. Signed-off-by: LI Qingwu <Qing-wu.Li@leica-geosystems.com.cn> Link: https://lore.kernel.org/r/20210317063902.19300-3-Qing-wu.Li@leica-geosystems.com.cn 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 204b285725c8..7ba6a6ba5c58 100644
--- a/drivers/iio/magnetometer/st_magn.h
+++ b/drivers/iio/magnetometer/st_magn.h
@@ -21,6 +21,7 @@
#define LSM303AGR_MAGN_DEV_NAME "lsm303agr_magn"
#define LIS2MDL_MAGN_DEV_NAME "lis2mdl"
#define LSM9DS1_MAGN_DEV_NAME "lsm9ds1_magn"
+#define IIS2MDC_MAGN_DEV_NAME "iis2mdc"
const struct st_sensor_settings *st_magn_get_settings(const char *name);
int st_magn_common_probe(struct iio_dev *indio_dev);