From: Matt Ranostay Date: Thu, 13 Apr 2017 02:16:57 +0000 (-0700) Subject: iio: light: apds9960: add system-wide suspend X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d454ae2edbfefabe7903c4f6881d1db8fea4b9f7;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Jonathan Cameron --- diff --git a/drivers/iio/light/apds9960.c b/drivers/iio/light/apds9960.c index c7af36de29a7..518a47e9377b 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) };