mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Randy Dunlap <rdunlap@infradead.org>
To: Yang Li <yang.lee@linux.alibaba.com>, rafael@kernel.org, lenb@kernel.org
Cc: linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH -next] ACPI: Add kernel-doc comments for ACPI suspend and hibernation functions
Date: Fri, 8 Mar 2024 08:01:02 -0800	[thread overview]
Message-ID: <691bd1ca-a199-474f-9b1c-1c91f21648ae@infradead.org> (raw)
In-Reply-To: <20240308072033.116556-1-yang.lee@linux.alibaba.com>

Hi--

On 3/7/24 23:20, Yang Li wrote:
> 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>
> ---
>  drivers/acpi/sleep.c | 24 ++++++++++++++----------
>  1 file changed, 14 insertions(+), 10 deletions(-)
> 
> diff --git a/drivers/acpi/sleep.c b/drivers/acpi/sleep.c
> index 728acfeb774d..5bc61f40c189 100644
> --- a/drivers/acpi/sleep.c
> +++ b/drivers/acpi/sleep.c
> @@ -502,6 +502,7 @@ static void acpi_pm_finish(void)
>  
>  /**
>   * acpi_pm_start - Start system PM transition.
> + * @acpi_state: The target ACPI power state to transition to.
>   */
>  static void acpi_pm_start(u32 acpi_state)
>  {
> @@ -540,8 +541,9 @@ static u32 acpi_suspend_states[] = {
>  };
>  
>  /**
> - *	acpi_suspend_begin - Set the target system sleep state to the state
> - *		associated with given @pm_state, if supported.
> + *acpi_suspend_begin - Set the target system sleep state to the state
> + *	associated with given @pm_state, if supported.
> + *@pm_state: The target system power management state.

Please use a space between '*' and function names, function parameters, etc.

>   */
>  static int acpi_suspend_begin(suspend_state_t pm_state)
>  {
> @@ -671,10 +673,11 @@ static const struct platform_suspend_ops acpi_suspend_ops = {
>  };
>  
>  /**
> - *	acpi_suspend_begin_old - Set the target system sleep state to the
> - *		state associated with given @pm_state, if supported, and
> - *		execute the _PTS control method.  This function is used if the
> - *		pre-ACPI 2.0 suspend ordering has been requested.
> + *acpi_suspend_begin_old - Set the target system sleep state to the
> + *	state associated with given @pm_state, if supported, and
> + *	execute the _PTS control method.  This function is used if the
> + *	pre-ACPI 2.0 suspend ordering has been requested.
> + *@pm_state: The target suspend state for the system.

Ditto.

>   */
>  static int acpi_suspend_begin_old(suspend_state_t pm_state)
>  {
> @@ -967,10 +970,11 @@ static const struct platform_hibernation_ops acpi_hibernation_ops = {
>  };
>  
>  /**
> - *	acpi_hibernation_begin_old - Set the target system sleep state to
> - *		ACPI_STATE_S4 and execute the _PTS control method.  This
> - *		function is used if the pre-ACPI 2.0 suspend ordering has been
> - *		requested.
> + *acpi_hibernation_begin_old - Set the target system sleep state to
> + *	ACPI_STATE_S4 and execute the _PTS control method.  This
> + *	function is used if the pre-ACPI 2.0 suspend ordering has been
> + *	requested.
> + *@stage: The power management event message.

Ditto.

>   */
>  static int acpi_hibernation_begin_old(pm_message_t stage)
>  {

thanks.
-- 
#Randy

      reply	other threads:[~2024-03-08 16:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-08  7:20 Yang Li
2024-03-08 16:01 ` Randy Dunlap [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=691bd1ca-a199-474f-9b1c-1c91f21648ae@infradead.org \
    --to=rdunlap@infradead.org \
    --cc=lenb@kernel.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rafael@kernel.org \
    --cc=yang.lee@linux.alibaba.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®