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)
commitddfd781dc4d851e5cfc114b64219d05796f0e809
tree94b784c1ec52bb653332468688eb86ec4122f9cf
parente3d2d8ece5f01852e4a377cf3fa228d2fd1482cc
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