mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-07-22 04:37:32 -04:00
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>
This commit is contained in:
committed by
Jakub Kicinski
parent
9c7d567358
commit
17099a2f86
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user