summaryrefslogtreecommitdiffstats
path: root/drivers/iio/accel/st_accel_spi.c
diff options
context:
space:
mode:
authorGiuseppe Barba <giuseppe.barba@st.com>2015-11-12 08:36:49 +0100
committerJonathan Cameron <jic23@kernel.org>2015-11-14 19:04:12 +0000
commit34dc578d99449a83dcb0f5ef4444215590183af4 (patch)
tree1938f06fd8abf9bbc3c3f5aaa225a2a28cbabca7 /drivers/iio/accel/st_accel_spi.c
parent72a868b38bdd60cbc4084a91fd7b8df3e2bb96ba (diff)
downloadblackbird-op-linux-34dc578d99449a83dcb0f5ef4444215590183af4.tar.gz
blackbird-op-linux-34dc578d99449a83dcb0f5ef4444215590183af4.zip
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_spi.c')
-rw-r--r--drivers/iio/accel/st_accel_spi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/accel/st_accel_spi.c b/drivers/iio/accel/st_accel_spi.c
index 54b61a3961c3..e82bedfaeb9b 100644
--- a/drivers/iio/accel/st_accel_spi.c
+++ b/drivers/iio/accel/st_accel_spi.c
@@ -58,6 +58,7 @@ static const struct spi_device_id st_accel_id_table[] = {
{ LSM303DLM_ACCEL_DEV_NAME },
{ LSM330_ACCEL_DEV_NAME },
{ LSM303AGR_ACCEL_DEV_NAME },
+ { LIS2DH12_ACCEL_DEV_NAME },
{},
};
MODULE_DEVICE_TABLE(spi, st_accel_id_table);
OpenPOWER on IntegriCloud