iio: accel: st_accel_spi: add OF capability to st_accel_spi
authorLorenzo Bianconi <lorenzo.bianconi83@gmail.com>
Mon, 26 Jun 2017 22:53:43 +0000 (00:53 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 2 Jul 2017 09:24:55 +0000 (10:24 +0100)
commitff73e8611e95ebcb9e88b533d9a666bc13c82a88
tree474adf92d2df100166e4c03ab804fce091ea9aed
parent2aac3388f1682d6208f6759c338a7efa37b0deca
iio: accel: st_accel_spi: add OF capability to st_accel_spi

Add device tree support for LIS3DH, LSM330D, LSM330DL, LSM330DLC,
LIS331DLH, LSM330, LSM303AGR, LIS2DH12, LIS3L02DQ, LNG2DM accel sensors.
Fix LIS302DL support defining of_device_id data field in st_accel_of_match
table

Fixes: 762227721fe6 (iio: accel: st_accel: handle deprecated bindings)
Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@st.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/accel/st_accel_spi.c