Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 57c4ce3c authored by Pavel Machek's avatar Pavel Machek Committed by Linus Torvalds
Browse files

[PATCH] pm: clean up /sys/power/disk



Clean code up a bit, and only show suspend to disk as available when
it is configured in.

Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 6161b2ce
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -143,11 +143,12 @@ static void suspend_finish(suspend_state_t state)



static char * pm_states[] = {
static char *pm_states[PM_SUSPEND_MAX] = {
	[PM_SUSPEND_STANDBY]	= "standby",
	[PM_SUSPEND_MEM]	= "mem",
#ifdef CONFIG_SOFTWARE_SUSPEND
	[PM_SUSPEND_DISK]	= "disk",
	NULL,
#endif
};