diff options
author | Marco Felsch <m.felsch@pengutronix.de> | 2019-11-29 19:53:14 +0300 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2019-12-15 14:42:14 +0300 |
commit | d93813520df0ff6e0aec7c8859c56a659417f9b7 (patch) | |
tree | aa411049881e5ac79552b9b1d5d5d3ed8c301f24 /drivers/iio/magnetometer/ak8975.c | |
parent | 52241a082d6c08f4993180752ed5a12b39712f03 (diff) | |
download | linux-d93813520df0ff6e0aec7c8859c56a659417f9b7.tar.xz |
iio: adc: ad799x: add pm_ops to disable the device completely
The device is always in a low-power state due to the hardware design. It
wakes up upon a conversion request and goes back into the low-power
state. The pm ops are added to disable the device completely and to free
the regulator. Disbaling the device completely should be not that
notable but freeing the regulator is important. Because if it is a shared
power-rail the regulator won't be disabled during suspend-to-ram/disk
and so all devices connected to that rail keeps on.
Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
Reviewed-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/magnetometer/ak8975.c')
0 files changed, 0 insertions, 0 deletions