summaryrefslogtreecommitdiff
path: root/drivers/iio/magnetometer/ak8975.c
diff options
context:
space:
mode:
authorMarco Felsch <m.felsch@pengutronix.de>2019-11-29 19:53:14 +0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2019-12-15 14:42:14 +0300
commitd93813520df0ff6e0aec7c8859c56a659417f9b7 (patch)
treeaa411049881e5ac79552b9b1d5d5d3ed8c301f24 /drivers/iio/magnetometer/ak8975.c
parent52241a082d6c08f4993180752ed5a12b39712f03 (diff)
downloadlinux-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