Skip to content
Commit 9d62ec6c authored by Albin Tonnerre's avatar Albin Tonnerre Committed by Rafael J. Wysocki
Browse files

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: default avatarAlbin Tonnerre <albin.tonnerre@free-electrons.com>
Signed-off-by: default avatarRafael J. Wysocki <rjw@sisk.pl>
parent 8dd2b426
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment