diff options
author | Sergey Larin <cerg2010cerg2010@mail.ru> | 2019-03-02 17:54:55 +0100 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2019-03-09 17:55:06 +0100 |
commit | 409a51e0a4a5f908763191fae2c29008632eb712 (patch) | |
tree | 084c49217097ed8718ee04bff5e4a67d59b077e7 /drivers/iio/gyro/adis16130.c | |
parent | iio: Fix scan mask selection (diff) | |
download | linux-409a51e0a4a5f908763191fae2c29008632eb712.tar.xz linux-409a51e0a4a5f908763191fae2c29008632eb712.zip |
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>
Diffstat (limited to 'drivers/iio/gyro/adis16130.c')
0 files changed, 0 insertions, 0 deletions