summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>2026-05-04 17:12:01 +0200
committerJakub Kicinski <kuba@kernel.org>2026-05-05 18:05:21 -0700
commit17099a2f86cbbcde762f67d629696aaa61b34fb7 (patch)
tree93f2a7930267f19fc0ceb7da18c507a9bae67b7d
parent9c7d567358cc71d3330c245b7db14935490e7ab0 (diff)
atm: solos-pci: Simplify initialisation of pci_device_id array
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>
-rw-r--r--drivers/atm/solos-pci.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/atm/solos-pci.c b/drivers/atm/solos-pci.c
index 24c764664c24..bcb1353877e4 100644
--- a/drivers/atm/solos-pci.c
+++ b/drivers/atm/solos-pci.c
@@ -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);