PM / sleep: Simplify sleep states sysfs interface code
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 15 Jul 2014 20:02:11 +0000 (22:02 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 21 Jul 2014 11:41:33 +0000 (13:41 +0200)
commitd431cbc53cb787a7f82d7d2fe0af65156db4d27a
treed97b5744f4eae1bfa41ab2cc16820173ffc3aef2
parent9a3c4145af32125c5ee39c0272662b47307a8323
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>
kernel/power/main.c
kernel/power/power.h
kernel/power/suspend.c
kernel/power/suspend_test.c