@@ -979,18 +979,17 @@ subsections can be defined as a separate function, it often is convenient to
979
979
point two or more members of struct dev_pm_ops to the same routine. There are
980
980
a few convenience macros that can be used for this purpose.
981
981
982
- The SIMPLE_DEV_PM_OPS macro declares a struct dev_pm_ops object with one
982
+ The DEFINE_SIMPLE_DEV_PM_OPS() declares a struct dev_pm_ops object with one
983
983
suspend routine pointed to by the .suspend(), .freeze(), and .poweroff()
984
984
members and one resume routine pointed to by the .resume(), .thaw(), and
985
985
.restore() members. The other function pointers in this struct dev_pm_ops are
986
986
unset.
987
987
988
- The UNIVERSAL_DEV_PM_OPS macro is similar to SIMPLE_DEV_PM_OPS, but it
989
- additionally sets the .runtime_resume() pointer to the same value as
990
- .resume() (and .thaw(), and .restore()) and the .runtime_suspend() pointer to
991
- the same value as .suspend() (and .freeze() and .poweroff()).
988
+ The DEFINE_RUNTIME_DEV_PM_OPS() is similar to DEFINE_SIMPLE_DEV_PM_OPS(), but it
989
+ additionally sets the .runtime_resume() pointer to pm_runtime_force_resume()
990
+ and the .runtime_suspend() pointer to pm_runtime_force_suspend().
992
991
993
- The SET_SYSTEM_SLEEP_PM_OPS can be used inside of a declaration of struct
992
+ The SYSTEM_SLEEP_PM_OPS() can be used inside of a declaration of struct
994
993
dev_pm_ops to indicate that one suspend routine is to be pointed to by the
995
994
.suspend(), .freeze(), and .poweroff() members and one resume routine is to
996
995
be pointed to by the .resume(), .thaw(), and .restore() members.
0 commit comments