From: Uwe Kleine-König (The Capable Hub) Date: Mon, 4 May 2026 15:12:01 +0000 (+0200) Subject: atm: solos-pci: Simplify initialisation of pci_device_id array X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=17099a2f86cbbcde762f67d629696aaa61b34fb7;p=thirdparty%2Flinux.git 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) Link: https://patch.msgid.link/20260504151202.2139919-2-u.kleine-koenig@baylibre.com Signed-off-by: Jakub Kicinski --- diff --git a/drivers/atm/solos-pci.c b/drivers/atm/solos-pci.c index 24c764664c247..bcb1353877e4d 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);