iio: gyro: st_gyro: fix L3GD20H support
authorLorenzo Bianconi <lorenzo.bianconi83@gmail.com>
Mon, 19 Jun 2017 20:04:30 +0000 (22:04 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sat, 1 Jul 2017 09:16:37 +0000 (10:16 +0100)
commit45a4e4220bf4927e321e18750e47c576bf62b000
treeb2a165357b3364e100d3f6bec86da9fcf9a1d922
parent1911f48de0d90b30a424906b7343b20dac90e3d9
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>
drivers/iio/gyro/st_gyro.h
drivers/iio/gyro/st_gyro_core.c
drivers/iio/gyro/st_gyro_i2c.c
drivers/iio/gyro/st_gyro_spi.c