[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAJZ5v0haL5qM+_k-vR8oSLHCytKTHhAVdqQru+fqL6RFBAAasw@mail.gmail.com>
Date: Sat, 3 Sep 2022 20:56:37 +0200
From: "Rafael J. Wysocki" <rafael@...nel.org>
To: Andy Shevchenko <andy.shevchenko@...il.com>,
John Garry <john.garry@...wei.com>
Cc: "Rafael J. Wysocki" <rafael@...nel.org>,
Len Brown <lenb@...nel.org>,
ACPI Devel Maling List <linux-acpi@...r.kernel.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] ACPI: platform: Use PLATFORM_DEVID_NONE in acpi_create_platform_device()
On Thu, Sep 1, 2022 at 12:25 PM Andy Shevchenko
<andy.shevchenko@...il.com> wrote:
>
> On Thu, Sep 1, 2022 at 1:10 PM John Garry <john.garry@...wei.com> wrote:
> >
> > Instead of hardcoding the value for the id, use PLATFORM_DEVID_NONE.
>
> Reviewed-by: Andy Shevchenko <andy.shevchenko@...il.com>
>
> > Signed-off-by: John Garry <john.garry@...wei.com>
> >
> > diff --git a/drivers/acpi/acpi_platform.c b/drivers/acpi/acpi_platform.c
> > index de3cbf152dee..d33334c9b8e5 100644
> > --- a/drivers/acpi/acpi_platform.c
> > +++ b/drivers/acpi/acpi_platform.c
> > @@ -140,7 +140,7 @@ struct platform_device *acpi_create_platform_device(struct acpi_device *adev,
> > pdevinfo.parent = adev->parent ?
> > acpi_get_first_physical_node(adev->parent) : NULL;
> > pdevinfo.name = dev_name(&adev->dev);
> > - pdevinfo.id = -1;
> > + pdevinfo.id = PLATFORM_DEVID_NONE;
> > pdevinfo.res = resources;
> > pdevinfo.num_res = count;
> > pdevinfo.fwnode = acpi_fwnode_handle(adev);
> > --
Applied as 6.1 material, thanks!
Powered by blists - more mailing lists