]> git.baikalelectronics.ru Git - kernel.git/commit
iio: imu: inv_mpu6050: enable i2c aux mux bypass only once
authorJean-Baptiste Maneyrol <jmaneyrol@invensense.com>
Wed, 19 Feb 2020 14:39:46 +0000 (15:39 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 8 Mar 2020 17:28:36 +0000 (17:28 +0000)
commit5143e2782a54d648711e18d9dcea5cde48451c71
tree94b784c1ec52bb653332468688eb86ec4122f9cf
parentbfb9a80a583f621cfcd65e063105ee1924ba8266
iio: imu: inv_mpu6050: enable i2c aux mux bypass only once

i2c auxiliary mux is done by analog switches. You do not need to
set them for every i2c transfer.
Just set i2c bypass bit at init and do noting in i2c de/select.

Signed-off-by: Jean-Baptiste Maneyrol <jmaneyrol@invensense.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/imu/inv_mpu6050/inv_mpu_i2c.c