]> www.infradead.org Git - users/jedix/linux-maple.git/commit
PM: Rearrange documentation related to __pm_runtime_disable()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 17 Feb 2025 20:03:01 +0000 (21:03 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 18 Feb 2025 20:01:31 +0000 (21:01 +0100)
commit258e231dc29fbd72bc82c16859a8304f71780ba2
tree4c23a1f4cd45975a4e40ee4989c9a15f7f82498f
parent0ad2507d5d93f39619fc42372c347d6006b64319
PM: Rearrange documentation related to __pm_runtime_disable()

There are only two callers of __pm_runtime_disable(), one of which is
device_suspend_late() and the other is pm_runtime_disable() that has
its own kerneldoc comment and there are no plans to add any more of
them.  Since they use different values of the __pm_runtime_disable()
second parameter, the actual code behavior is different in each case,
but it is all documented in the __pm_runtime_disable() kerneldoc comment
which is not particularly straightforward.

For this reason, move the information from the __pm_runtime_disable()
kerneldoc comment to the pm_runtime_disable() one and into a separate
comment in device_suspend_late() and remove the __pm_runtime_disable()
kerneldoc comment altogether.

No functional impact.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Link: https://patch.msgid.link/12617588.O9o76ZdvQC@rjwysocki.net
drivers/base/power/main.c
drivers/base/power/runtime.c
include/linux/pm_runtime.h