diff options
Diffstat (limited to 'include/linux/pm.h')
| -rw-r--r-- | include/linux/pm.h | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/include/linux/pm.h b/include/linux/pm.h index 14479325e3f3..5cfb07648eca 100644 --- a/include/linux/pm.h +++ b/include/linux/pm.h | |||
| @@ -176,7 +176,7 @@ struct pm_ops { | |||
| 176 | }; | 176 | }; |
| 177 | 177 | ||
| 178 | extern void pm_set_ops(struct pm_ops *); | 178 | extern void pm_set_ops(struct pm_ops *); |
| 179 | 179 | extern struct pm_ops *pm_ops; | |
| 180 | extern int pm_suspend(suspend_state_t state); | 180 | extern int pm_suspend(suspend_state_t state); |
| 181 | 181 | ||
| 182 | 182 | ||
| @@ -186,7 +186,9 @@ extern int pm_suspend(suspend_state_t state); | |||
| 186 | 186 | ||
| 187 | struct device; | 187 | struct device; |
| 188 | 188 | ||
| 189 | typedef u32 __bitwise pm_message_t; | 189 | typedef struct pm_message { |
| 190 | int event; | ||
| 191 | } pm_message_t; | ||
| 190 | 192 | ||
| 191 | /* | 193 | /* |
| 192 | * There are 4 important states driver can be in: | 194 | * There are 4 important states driver can be in: |
| @@ -207,9 +209,13 @@ typedef u32 __bitwise pm_message_t; | |||
| 207 | * or something similar soon. | 209 | * or something similar soon. |
| 208 | */ | 210 | */ |
| 209 | 211 | ||
| 210 | #define PMSG_FREEZE ((__force pm_message_t) 3) | 212 | #define PM_EVENT_ON 0 |
| 211 | #define PMSG_SUSPEND ((__force pm_message_t) 3) | 213 | #define PM_EVENT_FREEZE 1 |
| 212 | #define PMSG_ON ((__force pm_message_t) 0) | 214 | #define PM_EVENT_SUSPEND 2 |
| 215 | |||
| 216 | #define PMSG_FREEZE ((struct pm_message){ .event = PM_EVENT_FREEZE, }) | ||
| 217 | #define PMSG_SUSPEND ((struct pm_message){ .event = PM_EVENT_SUSPEND, }) | ||
| 218 | #define PMSG_ON ((struct pm_message){ .event = PM_EVENT_ON, }) | ||
| 213 | 219 | ||
| 214 | struct dev_pm_info { | 220 | struct dev_pm_info { |
| 215 | pm_message_t power_state; | 221 | pm_message_t power_state; |
