]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
iio: gyro: st_gyro: fix L3GD20H support
authorLorenzo Bianconi <lorenzo.bianconi83@gmail.com>
Mon, 19 Jun 2017 20:04:30 +0000 (22:04 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Feb 2020 13:05:44 +0000 (13:05 +0000)
commit867bb62c4a5677817d99704aa4ee2f7948327f63
tree2097a3d993bec5ea46981e33131ebb0a2fc3a2d5
parent6285915a9de1650b715c2365bf2c2ccf2fbb2ac7
iio: gyro: st_gyro: fix L3GD20H support

[ Upstream commit 45a4e4220bf4927e321e18750e47c576bf62b000 ]

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>
Signed-off-by: Sasha Levin <sashal@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