Go to the documentation of this file.
22 #ifndef _LINUX_PM_WAKEUP_H
23 #define _LINUX_PM_WAKEUP_H
26 # error "please don't include this file directly"
29 #include <linux/types.h>
66 #ifdef CONFIG_PM_SLEEP
72 static inline bool device_can_wakeup(
struct device *
dev)
74 return dev->
power.can_wakeup;
77 static inline bool device_may_wakeup(
struct device *
dev)
79 return dev->
power.can_wakeup && !!dev->
power.wakeup;
110 static inline bool device_can_wakeup(
struct device *
dev)
112 return dev->
power.can_wakeup;
140 dev->
power.should_wakeup =
true;
146 dev->
power.should_wakeup =
false;
163 static inline bool device_may_wakeup(
struct device *
dev)
165 return dev->
power.can_wakeup && dev->
power.should_wakeup;