PM: wakeup: Add routine to help fetch wakeup source object.
authorRan Wang <ran.wang_1@nxp.com>
Thu, 24 Oct 2019 09:26:42 +0000 (17:26 +0800)
committerLi Yang <leoyang.li@nxp.com>
Tue, 29 Oct 2019 19:45:54 +0000 (14:45 -0500)
commitb4941adb24c0676f77ddc25e6d7836b8245c47fc
treecbfdf7ee5da8ec2b13ddac02a1237b966c1fe67b
parent54ecb8f7028c5eb3d740bb82b0f1d90f2df63c5c
PM: wakeup: Add routine to help fetch wakeup source object.

Some user might want to go through all registered wakeup sources
and doing things accordingly. For example, SoC PM driver might need to
do HW programming to prevent powering down specific IP which wakeup
source depending on. So add this API to help walk through all registered
wakeup source objects on that list and return them one by one.

Signed-off-by: Ran Wang <ran.wang_1@nxp.com>
Tested-by: Leonard Crestez <leonard.crestez@nxp.com>
Reviewed-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Li Yang <leoyang.li@nxp.com>
drivers/base/power/wakeup.c
include/linux/pm_wakeup.h