]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
scsi: ufs: tc-dwc-g210-pci: Simplify initialization of pci_device_id array
authorUwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
Tue, 5 May 2026 08:28:52 +0000 (10:28 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 15 May 2026 01:39:23 +0000 (21:39 -0400)
commit2a18c57560f454e2e63373ecf00e4a6fb0265600
tree1d7450c34104151b6b71d9c090f45c5ea39bd7fc
parent195254adeddc30c5a892a1cc9528a6ed5e841224
scsi: ufs: tc-dwc-g210-pci: Simplify initialization of pci_device_id array

A list initializer is hard to parse for a human if they don't see or
know the order of the members of struct pci_device_id. So use the
PCI_VDEVICE macro which is much more idiomatic and skip assigning
explicit zeros.

There are no changes to the compiled result of the array; verified with
builds for x86 and arm64.

Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
Link: https://patch.msgid.link/ff015bf46ad395702f40c85c8359fd24957e7224.1777968942.git.u.kleine-koenig@baylibre.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/ufs/host/tc-dwc-g210-pci.c