Hi! > Almost all users of pm_ops only support mem sleep, don't check in .valid > and don't reject any others in .prepare so users can be confused if they > check /sys/power/state, especially when new states are ever added. > > This patch implements a generic pm_valid_only_mem function that is then > exported for users as well as using it in almost all pm_ops. > > Signed-off-by: Johannes Berg <johannes@xxxxxxxxxxxxxxxx> ACK. (You may want to send it to akpm). Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html _______________________________________________ linux-pm mailing list linux-pm@xxxxxxxxxxxxxxxxxxxxxxxxxx https://lists.linux-foundation.org/mailman/listinfo/linux-pm