]> 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)
commitcfae87b93f2a662fb6a4623ddaf5623c8b320014
tree94b784c1ec52bb653332468688eb86ec4122f9cf
parent9f2fb573c87b2bed888f6ba177cefaf88ebf1472
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