summaryrefslogtreecommitdiffstats
path: root/drivers/iio/gyro/st_gyro.h
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 11:16:37 +0200
commit45a4e4220bf4927e321e18750e47c576bf62b000 (patch)
treeb2a165357b3364e100d3f6bec86da9fcf9a1d922 /drivers/iio/gyro/st_gyro.h
parentiio: accel: bmc150: Add support for BOSC0200 ACPI device id (diff)
downloadlinux-45a4e4220bf4927e321e18750e47c576bf62b000.tar.xz
linux-45a4e4220bf4927e321e18750e47c576bf62b000.zip
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.h')
-rw-r--r--drivers/iio/gyro/st_gyro.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/gyro/st_gyro.h b/drivers/iio/gyro/st_gyro.h
index a5c5c4e29add..48923ae6ac3b 100644
--- a/drivers/iio/gyro/st_gyro.h
+++ b/drivers/iio/gyro/st_gyro.h
@@ -19,6 +19,7 @@
#define LSM330DL_GYRO_DEV_NAME "lsm330dl_gyro"
#define LSM330DLC_GYRO_DEV_NAME "lsm330dlc_gyro"
#define L3GD20_GYRO_DEV_NAME "l3gd20"
+#define L3GD20H_GYRO_DEV_NAME "l3gd20h"
#define L3G4IS_GYRO_DEV_NAME "l3g4is_ui"
#define LSM330_GYRO_DEV_NAME "lsm330_gyro"
#define LSM9DS0_GYRO_DEV_NAME "lsm9ds0_gyro"