Re: [PATCH v1] watchdog: Use named initializers for platform_device_id arrays
From: Guenter Roeck
Date: Thu Jul 02 2026 - 10:21:57 EST
On Tue, Jun 16, 2026 at 05:25:10PM +0200, Uwe Kleine-König (The Capable Hub) wrote:
> Named initializers are better readable and more robust to changes of the
> struct definition. This robustness is relevant for a planned change to
> struct platform_device_id replacing .driver_data by an anonymous union.
>
> For one driver drop the unused assignment to .driver_data instead.
>
> While touching these arrays unify spacing and usage of commas.
>
> There is no effect on the compiled arrays.
>
> Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@xxxxxxxxxxxx>
Applied.
Thanks,
Guenter