Re: [PATCH v3 12/22] gpio: Use named initializers for acpi_device_id array
From: Sakari Ailus
Date: Mon Oct 26 2026 - 13:04:43 EST
Hi Uwe,
On Mon, Oct 26, 2026 at 05:28:23PM +0100, Uwe Kleine-König (The Capable Hub) wrote:
> While being less compact, using named initializers allows to more easily
> see which members of the structs are assigned which value without having
> to lookup the declaration of the struct. And it's also more robust
> against changes to the struct definition.
>
> The mentioned robustness is relevant for a planned change to struct
> acpi_device_id that replaces .driver_data by an anonymous union.
>
> This patch doesn't modify the compiled arrays, only their representation
> in source form benefits.
>
> Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@xxxxxxxxxxxx>
Acked-by: Sakari Ailus <sakari.ailus@xxxxxxxxxxxxxxx> # gpio-usbio
--
Sakari Ailus