summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2017-04-12 19:16:57 -0700
committerJonathan Cameron <jic23@kernel.org>2017-04-14 16:43:32 +0100
commitd454ae2edbfefabe7903c4f6881d1db8fea4b9f7 (patch)
tree7a92c75c475d6a47a66babcccc5b0863cf64bf3a
parent4d4b30526eb88c4528ddfa8c113961c1ac178479 (diff)
downloadop-kernel-dev-d454ae2edbfefabe7903c4f6881d1db8fea4b9f7.zip
op-kernel-dev-d454ae2edbfefabe7903c4f6881d1db8fea4b9f7.tar.gz
iio: light: apds9960: add system-wide suspend
APDS9960 can safely force runtime suspend if the system wants to enter system-wide suspend Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
-rw-r--r--drivers/iio/light/apds9960.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/iio/light/apds9960.c b/drivers/iio/light/apds9960.c
index c7af36d..518a47e 100644
--- a/drivers/iio/light/apds9960.c
+++ b/drivers/iio/light/apds9960.c
@@ -1112,6 +1112,8 @@ static int apds9960_runtime_resume(struct device *dev)
#endif
static const struct dev_pm_ops apds9960_pm_ops = {
+ SET_SYSTEM_SLEEP_PM_OPS(pm_runtime_force_suspend,
+ pm_runtime_force_resume)
SET_RUNTIME_PM_OPS(apds9960_runtime_suspend,
apds9960_runtime_resume, NULL)
};
OpenPOWER on IntegriCloud