linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ulf Hansson <ulf.hansson@linaro.org>
To: Kevin Hilman <khilman@kernel.org>
Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>,
	"linux-pm@vger.kernel.org" <linux-pm@vger.kernel.org>,
	Maciej Matraszek <m.matraszek@samsung.com>,
	Len Brown <len.brown@intel.com>, Pavel Machek <pavel@ucw.cz>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	open list <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] PM / Domains: cleanup: rename gpd -> genpd in debugfs interface
Date: Tue, 3 Mar 2015 14:24:11 +0100	[thread overview]
Message-ID: <CAPDyKFq1x2oSctwOQNw4_RyS5b_vWRJcFaa8b277ptKjpKQm3Q@mail.gmail.com> (raw)
In-Reply-To: <1425324268-16090-1-git-send-email-khilman@kernel.org>

On 2 March 2015 at 20:24, Kevin Hilman <khilman@kernel.org> wrote:
> From: Kevin Hilman <khilman@linaro.org>
>
> To keep consisitency with the rest of the file, use 'genpd' as the
> name of the 'struct generic_pm_domain' pointer instead of 'gpd'.
>
> This is just a rename, no functional changes.
>
> Signed-off-by: Kevin Hilman <khilman@linaro.org>

Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>

> ---
>  drivers/base/power/domain.c | 24 ++++++++++++------------
>  1 file changed, 12 insertions(+), 12 deletions(-)
>
> diff --git a/drivers/base/power/domain.c b/drivers/base/power/domain.c
> index ba4abbe4693c..45937f88e77c 100644
> --- a/drivers/base/power/domain.c
> +++ b/drivers/base/power/domain.c
> @@ -2242,7 +2242,7 @@ static void rtpm_status_str(struct seq_file *s, struct device *dev)
>  }
>
>  static int pm_genpd_summary_one(struct seq_file *s,
> -               struct generic_pm_domain *gpd)
> +                               struct generic_pm_domain *genpd)
>  {
>         static const char * const status_lookup[] = {
>                 [GPD_STATE_ACTIVE] = "on",
> @@ -2256,26 +2256,26 @@ static int pm_genpd_summary_one(struct seq_file *s,
>         struct gpd_link *link;
>         int ret;
>
> -       ret = mutex_lock_interruptible(&gpd->lock);
> +       ret = mutex_lock_interruptible(&genpd->lock);
>         if (ret)
>                 return -ERESTARTSYS;
>
> -       if (WARN_ON(gpd->status >= ARRAY_SIZE(status_lookup)))
> +       if (WARN_ON(genpd->status >= ARRAY_SIZE(status_lookup)))
>                 goto exit;
> -       seq_printf(s, "%-30s  %-15s  ", gpd->name, status_lookup[gpd->status]);
> +       seq_printf(s, "%-30s  %-15s  ", genpd->name, status_lookup[genpd->status]);
>
>         /*
>          * Modifications on the list require holding locks on both
>          * master and slave, so we are safe.
> -        * Also gpd->name is immutable.
> +        * Also genpd->name is immutable.
>          */
> -       list_for_each_entry(link, &gpd->master_links, master_node) {
> +       list_for_each_entry(link, &genpd->master_links, master_node) {
>                 seq_printf(s, "%s", link->slave->name);
> -               if (!list_is_last(&link->master_node, &gpd->master_links))
> +               if (!list_is_last(&link->master_node, &genpd->master_links))
>                         seq_puts(s, ", ");
>         }
>
> -       list_for_each_entry(pm_data, &gpd->dev_list, list_node) {
> +       list_for_each_entry(pm_data, &genpd->dev_list, list_node) {
>                 kobj_path = kobject_get_path(&pm_data->dev->kobj, GFP_KERNEL);
>                 if (kobj_path == NULL)
>                         continue;
> @@ -2287,14 +2287,14 @@ static int pm_genpd_summary_one(struct seq_file *s,
>
>         seq_puts(s, "\n");
>  exit:
> -       mutex_unlock(&gpd->lock);
> +       mutex_unlock(&genpd->lock);
>
>         return 0;
>  }
>
>  static int pm_genpd_summary_show(struct seq_file *s, void *data)
>  {
> -       struct generic_pm_domain *gpd;
> +       struct generic_pm_domain *genpd;
>         int ret = 0;
>
>         seq_puts(s, "    domain                      status         slaves\n");
> @@ -2305,8 +2305,8 @@ static int pm_genpd_summary_show(struct seq_file *s, void *data)
>         if (ret)
>                 return -ERESTARTSYS;
>
> -       list_for_each_entry(gpd, &gpd_list, gpd_list_node) {
> -               ret = pm_genpd_summary_one(s, gpd);
> +       list_for_each_entry(genpd, &gpd_list, gpd_list_node) {
> +               ret = pm_genpd_summary_one(s, genpd);
>                 if (ret)
>                         break;
>         }
> --
> 2.1.3
>

  parent reply	other threads:[~2015-03-03 13:24 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-02 19:24 [PATCH] PM / Domains: cleanup: rename gpd -> genpd in debugfs interface Kevin Hilman
2015-03-03  8:45 ` Pavel Machek
2015-03-03 13:24 ` Ulf Hansson [this message]
2015-03-04 14:49 ` Rafael J. Wysocki

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=CAPDyKFq1x2oSctwOQNw4_RyS5b_vWRJcFaa8b277ptKjpKQm3Q@mail.gmail.com \
    --to=ulf.hansson@linaro.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=khilman@kernel.org \
    --cc=len.brown@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=m.matraszek@samsung.com \
    --cc=pavel@ucw.cz \
    --cc=rjw@rjwysocki.net \
    /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;
as well as URLs for NNTP newsgroup(s).