Skip to content

Commit d7ef570

Browse files
Yang Lirafaeljw
authored andcommitted
ACPI: PM: Improve kerneldoc comments for suspend and hibernation functions
This patch enhances the documentation for the ACPI power management functions related to system suspend and hibernation. This includes the use of kernel-doc style comments which provide developers with clearer guidance on the usage and expectations of these functions. Signed-off-by: Yang Li <yang.lee@linux.alibaba.com> Reviewed-by: Randy Dunlap <rdunlap@infradead.org> Tested-by: Randy Dunlap <rdunlap@infradead.org> [ rjw: Subject edits ] Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 0a500b8 commit d7ef570

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

drivers/acpi/sleep.c

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -514,6 +514,7 @@ static void acpi_pm_finish(void)
514514

515515
/**
516516
* acpi_pm_start - Start system PM transition.
517+
* @acpi_state: The target ACPI power state to transition to.
517518
*/
518519
static void acpi_pm_start(u32 acpi_state)
519520
{
@@ -552,8 +553,9 @@ static u32 acpi_suspend_states[] = {
552553
};
553554

554555
/**
555-
* acpi_suspend_begin - Set the target system sleep state to the state
556-
* associated with given @pm_state, if supported.
556+
* acpi_suspend_begin - Set the target system sleep state to the state
557+
* associated with given @pm_state, if supported.
558+
* @pm_state: The target system power management state.
557559
*/
558560
static int acpi_suspend_begin(suspend_state_t pm_state)
559561
{
@@ -683,10 +685,11 @@ static const struct platform_suspend_ops acpi_suspend_ops = {
683685
};
684686

685687
/**
686-
* acpi_suspend_begin_old - Set the target system sleep state to the
687-
* state associated with given @pm_state, if supported, and
688-
* execute the _PTS control method. This function is used if the
689-
* pre-ACPI 2.0 suspend ordering has been requested.
688+
* acpi_suspend_begin_old - Set the target system sleep state to the
689+
* state associated with given @pm_state, if supported, and
690+
* execute the _PTS control method. This function is used if the
691+
* pre-ACPI 2.0 suspend ordering has been requested.
692+
* @pm_state: The target suspend state for the system.
690693
*/
691694
static int acpi_suspend_begin_old(suspend_state_t pm_state)
692695
{
@@ -979,10 +982,11 @@ static const struct platform_hibernation_ops acpi_hibernation_ops = {
979982
};
980983

981984
/**
982-
* acpi_hibernation_begin_old - Set the target system sleep state to
983-
* ACPI_STATE_S4 and execute the _PTS control method. This
984-
* function is used if the pre-ACPI 2.0 suspend ordering has been
985-
* requested.
985+
* acpi_hibernation_begin_old - Set the target system sleep state to
986+
* ACPI_STATE_S4 and execute the _PTS control method. This
987+
* function is used if the pre-ACPI 2.0 suspend ordering has been
988+
* requested.
989+
* @stage: The power management event message.
986990
*/
987991
static int acpi_hibernation_begin_old(pm_message_t stage)
988992
{

0 commit comments

Comments
 (0)