commit | eaa54d96a435eafe801e1374eccde254b72221f5 | [log] [tgz] |
---|---|---|
author | Jean-Baptiste Maneyrol <jmaneyrol@invensense.com> | Mon Apr 23 12:33:30 2018 +0200 |
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | Sat Apr 28 16:48:10 2018 +0100 |
tree | 2a929562401f44580e55899cf4589704373909a1 | |
parent | 4cfcb2bfdd07b130f05a3fb39edd6bfa2a59bf7a [diff] |
iio: imu: inv_mpu6050: fix error path not turning chip back off Some functions are turning the chip on and not back off in error path. With set_power function using a reference counter that would keep the chip on forever. Signed-off-by: Jean-Baptiste Maneyrol <jmaneyrol@invensense.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>