From: Rafael J. Wysocki Date: Thu, 17 May 2007 05:11:19 +0000 (-0700) Subject: swsusp: fix sysfs interface X-Git-Tag: v2.6.22-rc2~34 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8d98a690f58e0d6ecf424b7ca84488475cf87bd9;p=pandora-kernel.git swsusp: fix sysfs interface The sysfs files /sys/power/disk and /sys/power/state do not work as documented, since they allow the user to write only a few initial characters of the input string to trigger the option (eg. 'echo pl > /sys/power/disk' activates the platform mode of hibernation). Fix it. Special thanks to Peter Moulder for pointing out the problem. Signed-off-by: Rafael J. Wysocki Acked-by: Pavel Machek Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed