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

ipack: 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>
Acked-by: Samuel Iglesias Gonsalvez <siglesias@igalia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Benoit Taine and committed by
Greg Kroah-Hartman
7426d29e 389345cf

+1 -1
+1 -1
drivers/ipack/carriers/tpci200.c
··· 618 618 __tpci200_pci_remove(tpci200); 619 619 } 620 620 621 - static DEFINE_PCI_DEVICE_TABLE(tpci200_idtable) = { 621 + static const struct pci_device_id tpci200_idtable[] = { 622 622 { TPCI200_VENDOR_ID, TPCI200_DEVICE_ID, TPCI200_SUBVENDOR_ID, 623 623 TPCI200_SUBDEVICE_ID }, 624 624 { 0, },