diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2015-05-19 15:37:18 +0200 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2015-06-08 22:21:18 +0100 |
commit | bbf5f037fad47e4affef6696aaf88a40b261e639 (patch) | |
tree | b7f6a6386cc47e1eb7d268c38a216da1a93e6986 /drivers/iio/accel/st_accel_i2c.c | |
parent | 4861a007bfd71a9fc0a83cc7fad41dda9bf8b5b7 (diff) |
iio: st_accel: support the LIS331DL sensor
This adds support for the LIS331DL sensor version. This is
a simple 8bit-only accelerometer.
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Denis Ciocca <denis.ciocca@st.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/accel/st_accel_i2c.c')
-rw-r--r-- | drivers/iio/accel/st_accel_i2c.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/iio/accel/st_accel_i2c.c b/drivers/iio/accel/st_accel_i2c.c index 6b720c190b2d..d4ad72ca4a3d 100644 --- a/drivers/iio/accel/st_accel_i2c.c +++ b/drivers/iio/accel/st_accel_i2c.c @@ -49,6 +49,10 @@ static const struct of_device_id st_accel_of_match[] = { .data = LSM330DLC_ACCEL_DEV_NAME, }, { + .compatible = "st,lis331dl-accel", + .data = LIS331DL_ACCEL_DEV_NAME, + }, + { .compatible = "st,lis331dlh-accel", .data = LIS331DLH_ACCEL_DEV_NAME, }, |