提交 d454ae2e 编写于 作者: M Matt Ranostay 提交者: Jonathan Cameron

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: NMatt Ranostay <matt.ranostay@konsulko.com>
Signed-off-by: NJonathan Cameron <jic23@kernel.org>
上级 4d4b3052
...@@ -1112,6 +1112,8 @@ static int apds9960_runtime_resume(struct device *dev) ...@@ -1112,6 +1112,8 @@ static int apds9960_runtime_resume(struct device *dev)
#endif #endif
static const struct dev_pm_ops apds9960_pm_ops = { 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, SET_RUNTIME_PM_OPS(apds9960_runtime_suspend,
apds9960_runtime_resume, NULL) apds9960_runtime_resume, NULL)
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册