summaryrefslogtreecommitdiffstats
path: root/drivers/staging/iio
diff options
context:
space:
mode:
authorBrian Masney2017-02-09 02:54:28 +0100
committerJonathan Cameron2017-02-11 10:46:38 +0100
commit0b59c388f89caeba22e205f7c6c985f4958323e4 (patch)
tree424f0d8877895f1bdf5a11ec87daff7b6fbd903c /drivers/staging/iio
parentstaging: iio: isl29028: fix incorrect sleep time when taking initial proximit... (diff)
downloadkernel-qcow2-linux-0b59c388f89caeba22e205f7c6c985f4958323e4.tar.gz
kernel-qcow2-linux-0b59c388f89caeba22e205f7c6c985f4958323e4.tar.xz
kernel-qcow2-linux-0b59c388f89caeba22e205f7c6c985f4958323e4.zip
staging: iio: isl29028: use the runtime power management for system sleep
With the introduction of runtime power management in commit 2db5054ac28d ("staging: iio: isl29028: add runtime power management support"), the system could go to sleep and turn off the device without notifying the runtime power management code. This patch changes the system suspend and resume to go through the runtime power management. Signed-off-by: Brian Masney <masneyb@onstation.org> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/staging/iio')
-rw-r--r--drivers/staging/iio/light/isl29028.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/staging/iio/light/isl29028.c b/drivers/staging/iio/light/isl29028.c
index 177dceda0820..a8f0c6c2dd95 100644
--- a/drivers/staging/iio/light/isl29028.c
+++ b/drivers/staging/iio/light/isl29028.c
@@ -656,7 +656,8 @@ static int __maybe_unused isl29028_resume(struct device *dev)
}
static const struct dev_pm_ops isl29028_pm_ops = {
- SET_SYSTEM_SLEEP_PM_OPS(isl29028_suspend, isl29028_resume)
+ SET_SYSTEM_SLEEP_PM_OPS(pm_runtime_force_suspend,
+ pm_runtime_force_resume)
SET_RUNTIME_PM_OPS(isl29028_suspend, isl29028_resume, NULL)
};