diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-07-15 22:02:11 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-07-21 13:41:33 +0200 |
commit | d431cbc53cb787a7f82d7d2fe0af65156db4d27a (patch) | |
tree | d97b5744f4eae1bfa41ab2cc16820173ffc3aef2 /kernel/power/power.h | |
parent | Linux 3.16-rc6 (diff) | |
download | linux-d431cbc53cb787a7f82d7d2fe0af65156db4d27a.tar.xz linux-d431cbc53cb787a7f82d7d2fe0af65156db4d27a.zip |
PM / sleep: Simplify sleep states sysfs interface code
Simplify the sleep states sysfs interface /sys/power/state code by
redefining pm_states[] as an array of pointers to constant strings
such that only the entries corresponding to valid states are set.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'kernel/power/power.h')
-rw-r--r-- | kernel/power/power.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/kernel/power/power.h b/kernel/power/power.h index c60f13b5270a..5d49dcac2537 100644 --- a/kernel/power/power.h +++ b/kernel/power/power.h @@ -178,13 +178,8 @@ extern void swsusp_show_speed(struct timeval *, struct timeval *, unsigned int, char *); #ifdef CONFIG_SUSPEND -struct pm_sleep_state { - const char *label; - suspend_state_t state; -}; - /* kernel/power/suspend.c */ -extern struct pm_sleep_state pm_states[]; +extern const char *pm_states[]; extern int suspend_devices_and_enter(suspend_state_t state); #else /* !CONFIG_SUSPEND */ |