]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
spi: Consistently define pci_device_ids using named initializers
authorUwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
Mon, 4 May 2026 14:21:17 +0000 (16:21 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 5 May 2026 01:08:08 +0000 (10:08 +0900)
commite4358093816df69b574a5632051801a881663d12
tree8db22ef2ba93e8436b32fa78d248e72f2aebd7e8
parentefcd8b9d111177d48c841d09beca43b15d5b9e5f
spi: Consistently define pci_device_ids using named initializers

The .driver_data member of the various struct pci_device_id arrays were
initialized by list expressions. This isn't easily readable if you're
not into PCI. Using named initializers is more explicit and thus easier
to parse. Also skip explicit assignments of 0 (which the compiler then
takes care of).

This change doesn't introduce changes to the compiled pci_device_id
arrays. Tested on x86 and arm64.

Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
Link: https://patch.msgid.link/20260504142117.2116978-2-u.kleine-koenig@baylibre.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-dw-pci.c
drivers/spi/spi-intel-pci.c
drivers/spi/spi-pci1xxxx.c
drivers/spi/spi-topcliff-pch.c