Re: [PATCH v3] ACPI: bus: Use OF match data for PRP0001 matched devices
From: Sakari Ailus
Date: Mon Jan 12 2026 - 04:11:12 EST
Hi Kartik, Andy,
On Mon, Jan 12, 2026 at 10:55:57AM +0200, Andy Shevchenko wrote:
> > if (!__acpi_match_device(adev, acpi_ids, of_ids, &acpi_id, &of_id))
> > return NULL;
> >
> > if (acpi_id)
> > return (const void *)acpi_id->driver_data;
> >
> > if (of_id)
> > return of_id->data;
> >
> > return NULL;
> >
> > Then, we can also remove acpi_of_device_get_match_data()?
>
> At brief look it's indeed seems to be a good optimisation as well.
Looks good to me, too!
--
Sakari Ailus