diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2015-03-18 12:52:06 +0300 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2015-03-28 13:55:36 +0300 |
commit | 3acddf74f807778f0593ab4aaf26189c93e55ff1 (patch) | |
tree | c0472480a57867e2bcc982810a65ca49dca24892 /drivers/iio/accel/st_accel_i2c.c | |
parent | 153fe946412b5da1a8808f79d4f7f4ebfa7586b0 (diff) | |
download | linux-3acddf74f807778f0593ab4aaf26189c93e55ff1.tar.xz |
iio: st-sensors: add support for lis3lv02d accelerometer
This adds support for the LIS3LV02 accelerometer found in the
ST Microelectronics Nomadik board series.
Cc: devicetree@vger.kernel.org
Cc: Denis CIOCCA <denis.ciocca@st.com>
Acked-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
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 c7246bdd30b9..6b720c190b2d 100644 --- a/drivers/iio/accel/st_accel_i2c.c +++ b/drivers/iio/accel/st_accel_i2c.c @@ -21,6 +21,10 @@ #ifdef CONFIG_OF static const struct of_device_id st_accel_of_match[] = { { + .compatible = "st,lis3lv02dl-accel", + .data = LIS3LV02DL_ACCEL_DEV_NAME, + }, + { .compatible = "st,lsm303dlh-accel", .data = LSM303DLH_ACCEL_DEV_NAME, }, |