summaryrefslogtreecommitdiffstats
path: root/drivers/iio/gyro/st_gyro_spi.c
diff options
context:
space:
mode:
authorLorenzo Bianconi <lorenzo.bianconi83@gmail.com>2017-06-19 22:04:30 +0200
committerJonathan Cameron <jic23@kernel.org>2017-07-01 10:16:37 +0100
commit45a4e4220bf4927e321e18750e47c576bf62b000 (patch)
treeb2a165357b3364e100d3f6bec86da9fcf9a1d922 /drivers/iio/gyro/st_gyro_spi.c
parent1911f48de0d90b30a424906b7343b20dac90e3d9 (diff)
downloadop-kernel-dev-45a4e4220bf4927e321e18750e47c576bf62b000.zip
op-kernel-dev-45a4e4220bf4927e321e18750e47c576bf62b000.tar.gz
iio: gyro: st_gyro: fix L3GD20H support
Add proper support for L3GD20H gyroscope sensor. In particular: - use L3GD20H as device name instead of L3GD20 - fix available full scales - fix available sample frequencies Note that the original patch listed first below introduced broken support for this part. The second patch drops the support as it didn't work. This new patch brings in working support. Fixes: 9444a300c2be (IIO: Add support for L3GD20H gyroscope) Fixes: a0657716416f ("iio:gyro: bug on L3GD20H gyroscope support") Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@st.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/gyro/st_gyro_spi.c')
-rw-r--r--drivers/iio/gyro/st_gyro_spi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/gyro/st_gyro_spi.c b/drivers/iio/gyro/st_gyro_spi.c
index fbf2fae..fa14d8f 100644
--- a/drivers/iio/gyro/st_gyro_spi.c
+++ b/drivers/iio/gyro/st_gyro_spi.c
@@ -52,6 +52,7 @@ static const struct spi_device_id st_gyro_id_table[] = {
{ LSM330DL_GYRO_DEV_NAME },
{ LSM330DLC_GYRO_DEV_NAME },
{ L3GD20_GYRO_DEV_NAME },
+ { L3GD20H_GYRO_DEV_NAME },
{ L3G4IS_GYRO_DEV_NAME },
{ LSM330_GYRO_DEV_NAME },
{ LSM9DS0_GYRO_DEV_NAME },
OpenPOWER on IntegriCloud