]> git.ipfire.org Git - thirdparty/linux.git/commit
spi: Use named initializers for platform_device_id arrays
authorUwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
Thu, 4 Jun 2026 20:55:26 +0000 (22:55 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 9 Jun 2026 21:44:23 +0000 (22:44 +0100)
commitfc82dda1dcc61a4e48c1511d0a3beefc9dc77312
treee64dc2f6d78eaea6b99c471c73bc07286e738df5
parent2cf4ad412f90f54597be95a6ce297d016d2fbef9
spi: Use named initializers for platform_device_id arrays

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.

While touching these arrays unify spacing and usage of commas.

Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
Link: https://patch.msgid.link/3fcd432a505bb1bb7f8ef0fba9162243200b3347.1780606153.git.u.kleine-koenig@baylibre.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-altera-platform.c
drivers/spi/spi-bcm63xx.c
drivers/spi/spi-cs42l43.c
drivers/spi/spi-rspi.c
drivers/spi/spi-s3c64xx.c
drivers/spi/spi-sh-msiof.c