linux/drivers/iio/gyro
Sergey Larin 409a51e0a4 iio: gyro: mpu3050: fix chip ID reading
According to the datasheet, the last bit of CHIP_ID register controls
I2C bus, and the first one is unused. Handle this correctly.

Note that there are chips out there that have a value such that
the id check currently fails.

Signed-off-by: Sergey Larin <cerg2010cerg2010@mail.ru>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2019-03-09 16:55:06 +00:00
..
adis16080.c iio:gyro: drop assign iio_info.driver_module and iio_trigger_ops.owner 2017-08-22 21:28:56 +01:00
adis16130.c iio:gyro: drop assign iio_info.driver_module and iio_trigger_ops.owner 2017-08-22 21:28:56 +01:00
adis16136.c gyro:adis16136: fix debugfs_simple_attr.cocci warnings 2018-01-08 16:03:44 +01:00
adis16260.c iio:gyro: drop assign iio_info.driver_module and iio_trigger_ops.owner 2017-08-22 21:28:56 +01:00
adxrs450.c iio:gyro: drop assign iio_info.driver_module and iio_trigger_ops.owner 2017-08-22 21:28:56 +01:00
bmg160_core.c iio/gyro/bmg160: Use millidegrees for temperature scale 2019-03-09 16:55:05 +00:00
bmg160_i2c.c
bmg160_spi.c iio: bmg160: Add SPI driver 2015-08-31 17:06:11 +01:00
bmg160.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
hid-sensor-gyro-3d.c iio/hid-sensors: Fix IIO_CHAN_INFO_RAW returning wrong values for signed numbers 2018-11-16 11:42:12 +00:00
itg3200_buffer.c iio:gyro: drop assign iio_info.driver_module and iio_trigger_ops.owner 2017-08-22 21:28:56 +01:00
itg3200_core.c iio:gyro: drop assign iio_info.driver_module and iio_trigger_ops.owner 2017-08-22 21:28:56 +01:00
Kconfig iio: gyro: mpu3050: add I2C dependency 2016-11-08 20:29:33 +00:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
mpu3050-core.c iio: gyro: mpu3050: fix chip ID reading 2019-03-09 16:55:06 +00:00
mpu3050-i2c.c iio: gyro: mpu3050: stop double error reporting 2017-04-03 20:40:51 +01:00
mpu3050.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
ssp_gyro_sensor.c iio: common: ssp_sensors: gyro: use devm_iio_device_register() 2017-01-28 12:16:17 +00:00
st_gyro_buffer.c iio: st_sensors: switch to a threaded interrupt 2016-05-29 20:21:41 +01:00
st_gyro_core.c iio: gyro: st_gyro: add SPI-3wire support to st_gyro framework 2017-10-10 20:32:28 +01:00
st_gyro_i2c.c iio: common: st_sensors: move st_sensors_of_i2c_probe() in common code 2017-07-01 10:16:56 +01:00
st_gyro_spi.c iio: gyro: st_gyro_spi: add OF capability to st_gyro_spi 2017-07-02 10:24:56 +01:00
st_gyro.h iio: gyro: st_gyro: fix L3GD20H support 2017-07-01 10:16:37 +01:00