projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d4b305
)
iio: light: apds9960: add system-wide suspend
author
Matt Ranostay
<matt.ranostay@konsulko.com>
Thu, 13 Apr 2017 02:16:57 +0000
(19:16 -0700)
committer
Jonathan Cameron
<jic23@kernel.org>
Fri, 14 Apr 2017 15:43:32 +0000
(16:43 +0100)
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>
drivers/iio/light/apds9960.c
patch
|
blob
|
history
diff --git
a/drivers/iio/light/apds9960.c
b/drivers/iio/light/apds9960.c
index c7af36de29a7446476aa2375602cf31198d5d8d7..518a47e9377b031130d3e562e818c3a463a1c18f 100644
(file)
--- 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)
};