]> git.karo-electronics.de Git - mv-sheeva.git/commit
PM: Add comment describing relationships between PM callbacks to pm.h
authorRafael J. Wysocki <rjw@sisk.pl>
Mon, 13 Feb 2012 15:29:47 +0000 (16:29 +0100)
committerRafael J. Wysocki <rjw@sisk.pl>
Fri, 17 Feb 2012 22:36:30 +0000 (23:36 +0100)
commitc48825251cf5950da9d618144c4db6c130e6c0cd
tree2e8a163cfaddfdb78243f0ba501b1923e3d7d3be
parentbc25cf508942c56810d4fb623ef27b56ccef7783
PM: Add comment describing relationships between PM callbacks to pm.h

The UNIVERSAL_DEV_PM_OPS() macro is slightly misleading, because it
may suggest that it's a good idea to point runtime PM callback
pointers to the same routines as system suspend/resume callbacks
.suspend() and .resume(), which is not the case.  For this reason,
add a comment to include/linux/pm.h, next to the definition of
UNIVERSAL_DEV_PM_OPS(), describing how device PM callbacks are
related to each other.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
include/linux/pm.h