@@ -979,18 +979,17 @@ subsections can be defined as a separate function, it often is convenient to
979979point two or more members of struct dev_pm_ops to the same routine. There are
980980a few convenience macros that can be used for this purpose.
981981
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
983983suspend routine pointed to by the .suspend(), .freeze(), and .poweroff()
984984members and one resume routine pointed to by the .resume(), .thaw(), and
985985.restore() members. The other function pointers in this struct dev_pm_ops are
986986unset.
987987
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().
992991
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
994993dev_pm_ops to indicate that one suspend routine is to be pointed to by the
995994.suspend(), .freeze(), and .poweroff() members and one resume routine is to
996995be pointed to by the .resume(), .thaw(), and .restore() members.
0 commit comments