]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
mmc: via-sdmmc: Simplify initialisation of pci_device_id array
authorUwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
Thu, 7 May 2026 16:10:07 +0000 (18:10 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 11 May 2026 15:24:33 +0000 (17:24 +0200)
commitd11f110c4ad2d431f4440baba9afb5b8e4190977
tree3d4247e2f8ccaa4f3443444edec9c7f371778dc5
parent4f28846aaf8db9668e338b8987973f8935edff34
mmc: via-sdmmc: Simplify initialisation of pci_device_id array

Instead of assigning the pci_device_id members using a list (which is
hard to read as you need to look at the order of the members in that
struct in parallel) use the PCI_VDEVICE() convenience macro to compact
the initialisation while improving readability.

Also drop trailing zeros that the compiler will care about then.

The change doesn't introduce binary changes to the compiled driver,
verified on both ARCH=x86 and ARCH=arm64.

Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/via-sdmmc.c