commit | a3aaf7770a8887cedf216becc5392e481ee1fcaa | [log] [tgz] |
---|---|---|
author | Jean-Baptiste Maneyrol <jmaneyrol@invensense.com> | Wed Feb 19 15:39:48 2020 +0100 |
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | Sun Mar 08 17:28:37 2020 +0000 |
tree | 50261074de888990da7701b81877d8a9e2bfa34e | |
parent | 14c046ed17111b50aa9c5d8bd25d742421ac843c [diff] |
iio: imu: inv_mpu6050: set power on/off only once during all init This way there is no need anymore to export the power function to i2c and spi modules. Bus setup is done inside init when power is on and the result is now checked. Signed-off-by: Jean-Baptiste Maneyrol <jmaneyrol@invensense.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>