Re: [PATCH v1 2/3] regulator: Use named initializers for platform_device_id arrays
Matti Vaittinen <[email protected]>
| Newsgroups | org.kernel.vger.linux-omap,dev.linux.lists.imx,org.infradead.lists.linux-arm-kernel,org.infradead.lists.linux-mediatek,org.kernel.vger.linux-arm-msm,org.kernel.vger.linux-kernel,org.kernel.vger.linux-renesas-soc,org.kernel.vger.linux-samsung-soc |
|---|---|
| Message-ID | <CANhJrGNyB7aqMhR5DiLXd6OPmsE4Vox=K7UwMPZ1ZZc2-Ciw3w@mail.gmail.com> |
ke 27.5.2026 klo 13.48 Uwe Kleine-König (The Capable Hub) ([email protected]) 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) <[email protected]> Reviewed-by: Matti Vaittinen <[email protected]> -- 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));