summaryrefslogtreecommitdiff
path: root/drivers/iio/accel/st_accel_core.c
diff options
context:
space:
mode:
authorGiuseppe Barba <giuseppe.barba@st.com>2015-11-12 10:36:49 +0300
committerJonathan Cameron <jic23@kernel.org>2015-11-14 22:04:12 +0300
commit34dc578d99449a83dcb0f5ef4444215590183af4 (patch)
tree1938f06fd8abf9bbc3c3f5aaa225a2a28cbabca7 /drivers/iio/accel/st_accel_core.c
parent72a868b38bdd60cbc4084a91fd7b8df3e2bb96ba (diff)
downloadlinux-34dc578d99449a83dcb0f5ef4444215590183af4.tar.xz
iio: st-accel: add support for lis2dh12
This commit add support for STMicroelectronics lis2dh12 accelerometer. Datasheet for this device can be found here: http://www.st.com/st-web-ui/static/active/en/resource/technical/ document/datasheet/DM00091513.pdf Signed-off-by: Giuseppe Barba <giuseppe.barba@st.com> Acked-by: Denis Ciocca <denis.ciocca@st.com> Acked-by: Daniel Baluta <daniel.baluta@intel.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/accel/st_accel_core.c')
-rw-r--r--drivers/iio/accel/st_accel_core.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/accel/st_accel_core.c b/drivers/iio/accel/st_accel_core.c
index dab8b76c1427..9d973f1e74ac 100644
--- a/drivers/iio/accel/st_accel_core.c
+++ b/drivers/iio/accel/st_accel_core.c
@@ -234,6 +234,7 @@ static const struct st_sensor_settings st_accel_sensors_settings[] = {
[3] = LSM330DL_ACCEL_DEV_NAME,
[4] = LSM330DLC_ACCEL_DEV_NAME,
[5] = LSM303AGR_ACCEL_DEV_NAME,
+ [6] = LIS2DH12_ACCEL_DEV_NAME,
},
.ch = (struct iio_chan_spec *)st_accel_12bit_channels,
.odr = {