iio: imu: inv_mpu6050: convert to use an explicit i2c mux core
authorPeter Rosin <peda@axentia.se>
Wed, 20 Apr 2016 06:40:49 +0000 (08:40 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Fri, 22 Apr 2016 13:00:05 +0000 (15:00 +0200)
commit51f97f6dd73d9349f8e6a1d36ac5f7371d275fb3
tree465e4f2fbbbffe07736f19e55a9c7b7b087dd6b2
parent193304aef8523265884f08144b1f98ad272e2d7e
iio: imu: inv_mpu6050: convert to use an explicit i2c mux core

Allocate an explicit i2c mux core to handle parent and child adapters
etc. Update the select/deselect ops to be in terms of the i2c mux core
instead of the child adapter.

Acked-by: Jonathan Cameron <jic23@kernel.org>
Tested-by: Crestez Dan Leonard <leonard.crestez@intel.com>
Signed-off-by: Peter Rosin <peda@axentia.se>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/iio/imu/inv_mpu6050/inv_mpu_acpi.c
drivers/iio/imu/inv_mpu6050/inv_mpu_core.c
drivers/iio/imu/inv_mpu6050/inv_mpu_i2c.c
drivers/iio/imu/inv_mpu6050/inv_mpu_iio.h