]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
gpio: Use named initializers for platform_device_id arrays
authorUwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
Wed, 27 May 2026 14:57:28 +0000 (16:57 +0200)
committerBartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Thu, 28 May 2026 08:46:46 +0000 (10:46 +0200)
commit2d43fb71f4ecbd10649a277e8790e7ca27acfdfe
treea58b96cb3cb603926ed05dcc869f244b041dcdd6
parent516e4d886941568174f46985fbb7c960c516ada9
gpio: 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 unit.

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>
Reviewed-by: Linus Walleij <linusw@kernel.org>
Link: https://patch.msgid.link/b8f7581e9311d5579447304ac4f2d557b29e4f9d.1779893336.git.u.kleine-koenig@baylibre.com
[Bartosz: Rebased on top of current linux-next where one of the drivers
no longer exists.]
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
drivers/gpio/gpio-adp5585.c
drivers/gpio/gpio-bd72720.c
drivers/gpio/gpio-bd9571mwv.c
drivers/gpio/gpio-lp873x.c
drivers/gpio/gpio-lp87565.c
drivers/gpio/gpio-max77759.c
drivers/gpio/gpio-pxa.c
drivers/gpio/gpio-tps65086.c
drivers/gpio/gpio-tps65218.c
drivers/gpio/gpio-tps65219.c
drivers/gpio/gpio-tps65912.c