Re: [PATCH v1 0/4] ACPI: Use named initializers for acpi_device_id arrays

From: Rafael J. Wysocki (Intel)

Date: Fri Nov 13 2026 - 16:31:14 EST


On Fri, Nov 13, 2026 at 12:14 PM Uwe Kleine-König (The Capable Hub)
<u.kleine-koenig@xxxxxxxxxxxx> wrote:
>
> From: Uwe Kleine-König <ukleinek@xxxxxxxxxx>
>
> Hello,
>
> this series is about preparing drivers/acpi for a change to struct
> acpi_device_id. The idea is to replace .driver_data by an anonymous
> union, see
> https://lore.kernel.org/all/cover.1780048925.git.u.kleine-koenig@xxxxxxxxxxxx/
> for more details. (The linked example is about platform_device_id, I
> intend to apply it acpi_device_id and several others, too.)
>
> Before this union can be added, all initializers must use named
> initializers (C99 calls them designated initializers), which IMHO is a
> nice cleanup that can stand for itself as it makes the code easier to
> read.
>
> Pawel sent a similar series earlier, find it at
> https://lore.kernel.org/all/20260727-acpi-refactor-v1-0-ff900aa326ee@xxxxxxxxxxxxxxxxxxxx/.
> Compared to that the patch splitting is done differently and the base
> here is newer.
>
> I checked for the other *_device_id and for these there is nothing to do
> below drivers/acpi because the few instances already use named
> initializers.
>
> The last patch in this series is just some cosmetic to align the coding
> style. If you consider it churn, just drop it.
>
> It would be great to get this series in soon, as keeping it up to date
> for a later resend is an annoying effort. Thanks for your cooperation.
>
> Best regards
> Uwe
>
> Uwe Kleine-König (The Capable Hub) (4):
> ACPI: Unify acpi_device_id list terminators
> ACPI: Drop unused .driver_data initializers in acpi_device_id arrays
> ACPI: Use named initializers for acpi_device_id arrays
> ACPI: Unify *_device_id list terminators

All patches applied as 7.5 material, thanks!