public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Pavel Machek <pavel@ucw.cz>
To: Len Brown <lenb@kernel.org>
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>, Linux-acpi@vger.kernel.org
Subject: Re: [PATCH] ACPI: re-name acpi_pm_ops to acpi_suspend_ops
Date: Thu, 1 May 2008 18:14:36 +0200	[thread overview]
Message-ID: <20080501161436.GF26085@elf.ucw.cz> (raw)
In-Reply-To: <200804291020.33068.lenb@kernel.org>

Hi!

> Pavel, Rafael,
> I re-named the acpi_pm_* ops to be acpi_suspend_* below.
> 
> I think also that main.c isn't the best name for this file,
> how about acpi_platform_suspend.c, or maybe just acpi_suspend.c?

sleep/main.c sounds quite sensible, but I guess acpi_suspend.c would
be okay, too.

> commit 2c6e33c366bff2f839df60d9235ff09143e28dd9
> Author: Len Brown <len.brown@intel.com>
> Date:   Wed Apr 23 18:02:52 2008 -0400
> 
>     ACPI: re-name acpi_pm_ops to acpi_suspend_ops
>     
>     ... as they are platform_suspend_ops after all.
>     
>     cosmetic re-name only, no functional change.
>     
>     Signed-off-by: Len Brown <len.brown@intel.com>
> 
> diff --git a/drivers/acpi/sleep/main.c b/drivers/acpi/sleep/main.c
> index 71183ee..c3b0cd8 100644
> --- a/drivers/acpi/sleep/main.c
> +++ b/drivers/acpi/sleep/main.c
> @@ -51,7 +51,7 @@ static int acpi_sleep_prepare(u32 acpi_state)
>  }
>  
>  #ifdef CONFIG_SUSPEND
> -static struct platform_suspend_ops acpi_pm_ops;
> +static struct platform_suspend_ops acpi_suspend_ops;
>  

ACK.

>  extern void do_suspend_lowlevel(void);
>  
> @@ -65,11 +65,11 @@ static u32 acpi_suspend_states[] = {
>  static int init_8259A_after_S1;
>  
>  /**
> - *	acpi_pm_begin - Set the target system sleep state to the state
> + *	acpi_suspend_begin - Set the target system sleep state to the state
>   *		associated with given @pm_state, if supported.
>   */
>  
> -static int acpi_pm_begin(suspend_state_t pm_state)
> +static int acpi_suspend_begin(suspend_state_t pm_state)

And yes, this means it is very good idea.
									Pavel

-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

      parent reply	other threads:[~2008-05-01 16:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-29 14:20 [PATCH] ACPI: re-name acpi_pm_ops to acpi_suspend_ops Len Brown
2008-04-29 20:24 ` Rafael J. Wysocki
2008-05-01 16:14 ` Pavel Machek [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=20080501161436.GF26085@elf.ucw.cz \
    --to=pavel@ucw.cz \
    --cc=Linux-acpi@vger.kernel.org \
    --cc=lenb@kernel.org \
    --cc=rjw@sisk.pl \
    /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