aboutsummaryrefslogtreecommitdiff
path: root/drivers/base
diff options
context:
space:
mode:
authorAlbin Tonnerre <albin.tonnerre@free-electrons.com>2009-08-05 23:59:59 +0200
committerRafael J. Wysocki <rjw@sisk.pl>2009-09-14 20:27:00 +0200
commit9d62ec6ca71d71c8a0d2cb1004f476d33f668955 (patch)
tree9add05fac4a177024f6de235b5d9b82054e24b27 /drivers/base
parent8dd2b42665f9d4ca4fded99f048631b60f669dc5 (diff)
PM: Add convenience macro to make switching to dev_pm_ops less error-prone
In a number of cases, the .suspend, .freeze, .poweroff and .resume, .thaw, .restore functions are identical. However, they all need to be assigned to avoid regressionsm as the previous code called .suspend resp. .resume in all those cases. SIMPLE_DEV_PM_OPS helps to deal with this case. [rjw: Changed the name of the macro and added the comment explaining its purpose.] Signed-off-by: Albin Tonnerre <albin.tonnerre@free-electrons.com> Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Diffstat (limited to 'drivers/base')
0 files changed, 0 insertions, 0 deletions