Skip to content
Commit 409a51e0 authored by Sergey Larin's avatar Sergey Larin Committed by Jonathan Cameron
Browse files

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: default avatarSergey Larin <cerg2010cerg2010@mail.ru>
Reviewed-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Cc: <Stable@vger.kernel.org>
Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent 20ea39ef
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment