summaryrefslogtreecommitdiff
path: root/drivers/iio/accel/st_accel.h
diff options
context:
space:
mode:
authorStefan Wahren <stefan.wahren@chargebyte.com>2023-03-17 11:33:20 +0100
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2023-03-19 15:41:22 +0000
commit46e33707fe95a21aa9896bded0be97285b779509 (patch)
treee77623b2772f2098b2487ffe4fcbe24dd7e52c59 /drivers/iio/accel/st_accel.h
parentf9dbd94ba8cf19f8ff76a48ba5864fd140f8a4e1 (diff)
downloadlinux-46e33707fe95a21aa9896bded0be97285b779509.tar.gz
iio: accel: add support for IIS328DQ variant
Since the ST IIS328DQ accelerometer is compatible to the ST LIS331DL, just add the new compatible to the st_accel framework. Link: https://www.st.com/resource/en/datasheet/iis328dq.pdf Signed-off-by: Stefan Wahren <stefan.wahren@chargebyte.com> Link: https://lore.kernel.org/r/20230317103323.7741-6-stefan.wahren@chargebyte.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/accel/st_accel.h')
-rw-r--r--drivers/iio/accel/st_accel.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/accel/st_accel.h b/drivers/iio/accel/st_accel.h
index 56ed0c776d4a..e7525615712b 100644
--- a/drivers/iio/accel/st_accel.h
+++ b/drivers/iio/accel/st_accel.h
@@ -39,6 +39,7 @@
#define LIS302DL_ACCEL_DEV_NAME "lis302dl"
#define LSM303C_ACCEL_DEV_NAME "lsm303c_accel"
#define SC7A20_ACCEL_DEV_NAME "sc7a20"
+#define IIS328DQ_ACCEL_DEV_NAME "iis328dq"
#ifdef CONFIG_IIO_BUFFER