]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
atm: solos-pci: Simplify initialisation of pci_device_id array
authorUwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
Mon, 4 May 2026 15:12:01 +0000 (17:12 +0200)
committerJakub Kicinski <kuba@kernel.org>
Wed, 6 May 2026 01:05:21 +0000 (18:05 -0700)
Use the convenience macro PCI_DEVICE to initialize .vendor, .device,
.subvendor and .subdevice. Drop explicit zeros that the compiler also
fills in.

Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
Link: https://patch.msgid.link/20260504151202.2139919-2-u.kleine-koenig@baylibre.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/atm/solos-pci.c

index 24c764664c2470a779642468d751c8122a303ae5..bcb1353877e4d34f276540817b2c8ce579b208d4 100644 (file)
@@ -1464,8 +1464,8 @@ static void fpga_remove(struct pci_dev *dev)
 }
 
 static const struct pci_device_id fpga_pci_tbl[] = {
-       { 0x10ee, 0x0300, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 },
-       { 0, }
+       { PCI_DEVICE(0x10ee, 0x0300) },
+       { }
 };
 
 MODULE_DEVICE_TABLE(pci,fpga_pci_tbl);