commit | 4599cac8461468a10dc375f4d4e12442e2d16d3f | [log] [tgz] |
---|---|---|
author | Jean-Baptiste Maneyrol <jmaneyrol@invensense.com> | Wed Feb 19 15:39:57 2020 +0100 |
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | Sun Mar 08 17:28:39 2020 +0000 |
tree | e557b46207baa80b2820693b6f8e418f5f6bf014 | |
parent | 5e95ca3637d6f706d157a5f12e51f3e1c175285a [diff] |
iio: imu: inv_mpu6050: use runtime pm with autosuspend Use runtime power management for handling chip power and sensor engines on/off. Simplifies things a lot since pm runtime already has reference counter. Usage of autosuspend reduces the number of power on/off. This makes polling interface now usable to get data at low frequency. Signed-off-by: Jean-Baptiste Maneyrol <jmaneyrol@invensense.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>