[PATCH v1 2/3] regulator: Use named initializers for platform_device_id arrays

Matti Vaittinen mazziesaccount at gmail.com
Fri May 29 01:02:17 PDT 2026


ke 27.5.2026 klo 13.48 Uwe Kleine-König (The Capable Hub)
(u.kleine-koenig at baylibre.com) kirjoitti:
>
> 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 unit.
>
> While touching these arrays unify spacing and usage of commas.
>
> Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig at baylibre.com>
Reviewed-by: Matti Vaittinen <mazziesaccount at gmail.com>

-- 

Matti Vaittinen
Linux kernel developer at ROHM Semiconductors
Oulu Finland

~~ When things go utterly wrong vim users can always type :help! ~~

Discuss - Estimate - Plan - Report and finally accomplish this:
void do_work(int time) __attribute__ ((const));



More information about the linux-arm-kernel mailing list