Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

virtio: Replace DEFINE_PCI_DEVICE_TABLE macro use

We should prefer `struct pci_device_id` over `DEFINE_PCI_DEVICE_TABLE` to meet
kernel coding style guidelines. This issue was reported by checkpatch.

Signed-off-by: Benoit Taine <benoit.taine@lip6.fr>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>

authored by

Benoit Taine and committed by
Rusty Russell
cef340e6 5885e48e

+1 -1
+1 -1
drivers/virtio/virtio_pci.c
··· 91 91 }; 92 92 93 93 /* Qumranet donated their vendor ID for devices 0x1000 thru 0x10FF. */ 94 - static DEFINE_PCI_DEVICE_TABLE(virtio_pci_id_table) = { 94 + static const struct pci_device_id virtio_pci_id_table[] = { 95 95 { PCI_DEVICE(0x1af4, PCI_ANY_ID) }, 96 96 { 0 } 97 97 };