[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAJZ5v0ibmADGpSeuGJEBLwRwLx_WR-EkxsytdLB3LEd5DYMGKA@mail.gmail.com>
Date: Thu, 15 Apr 2021 19:27:09 +0200
From: "Rafael J. Wysocki" <rafael@...nel.org>
To: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
Cc: Joe Perches <joe@...ches.com>, Linux PM <linux-pm@...r.kernel.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
"Rafael J. Wysocki" <rjw@...ysocki.net>,
Pavel Machek <pavel@....cz>, Len Brown <len.brown@...el.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Subject: Re: [PATCH v1 1/1] PM / wakeup: use dev_set_name() directly
On Wed, Apr 14, 2021 at 2:53 PM Andy Shevchenko
<andriy.shevchenko@...ux.intel.com> wrote:
>
> We have open coded dev_set_name() implementation, replace that
> with a direct call.
>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
> ---
> drivers/base/power/wakeup_stats.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/base/power/wakeup_stats.c b/drivers/base/power/wakeup_stats.c
> index d638259b829a..5ade7539ac02 100644
> --- a/drivers/base/power/wakeup_stats.c
> +++ b/drivers/base/power/wakeup_stats.c
> @@ -154,7 +154,7 @@ static struct device *wakeup_source_device_create(struct device *parent,
> dev_set_drvdata(dev, ws);
> device_set_pm_not_required(dev);
>
> - retval = kobject_set_name(&dev->kobj, "wakeup%d", ws->id);
> + retval = dev_set_name(dev, "wakeup%d", ws->id);
> if (retval)
> goto error;
>
> --
Applied as 5.13 material, thanks!
Powered by blists - more mailing lists