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

mfd: Convert to DEFINE_PCI_DEVICE_TABLE

Convert static struct pci_device_id *[] to static DEFINE_PCI_DEVICE_TABLE
tables.

Cc: Andres Salomon <dilinger@queued.net>
Cc: Denis Turischev <denis@compulab.co.il>
Cc: Ben Dooks <ben@simtec.co.uk>
Cc: Vincent Sanders <vince@simtec.co.uk>
Cc: Mocean Laboratories <info@mocean-labs.com>
Cc: Harald Welte <HaraldWelte@viatech.com>
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>

authored by

Axel Lin and committed by
Samuel Ortiz
61485c63 73fe6b2b

+5 -5
+1 -1
drivers/mfd/cs5535-mfd.c
··· 172 172 pci_disable_device(pdev); 173 173 } 174 174 175 - static struct pci_device_id cs5535_mfd_pci_tbl[] = { 175 + static DEFINE_PCI_DEVICE_TABLE(cs5535_mfd_pci_tbl) = { 176 176 { PCI_DEVICE(PCI_VENDOR_ID_NS, PCI_DEVICE_ID_NS_CS5535_ISA) }, 177 177 { PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_CS5536_ISA) }, 178 178 { 0, }
+1 -1
drivers/mfd/lpc_sch.c
··· 74 74 }, 75 75 }; 76 76 77 - static struct pci_device_id lpc_sch_ids[] = { 77 + static DEFINE_PCI_DEVICE_TABLE(lpc_sch_ids) = { 78 78 { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_SCH_LPC) }, 79 79 { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ITC_LPC) }, 80 80 { 0, }
+1 -1
drivers/mfd/sm501.c
··· 1720 1720 return 0; 1721 1721 } 1722 1722 1723 - static struct pci_device_id sm501_pci_tbl[] = { 1723 + static DEFINE_PCI_DEVICE_TABLE(sm501_pci_tbl) = { 1724 1724 { 0x126f, 0x0501, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, 1725 1725 { 0, }, 1726 1726 };
+1 -1
drivers/mfd/timberdale.c
··· 857 857 kfree(priv); 858 858 } 859 859 860 - static struct pci_device_id timberdale_pci_tbl[] = { 860 + static DEFINE_PCI_DEVICE_TABLE(timberdale_pci_tbl) = { 861 861 { PCI_DEVICE(PCI_VENDOR_ID_TIMB, PCI_DEVICE_ID_TIMB) }, 862 862 { 0 } 863 863 };
+1 -1
drivers/mfd/vx855.c
··· 118 118 pci_disable_device(pdev); 119 119 } 120 120 121 - static struct pci_device_id vx855_pci_tbl[] = { 121 + static DEFINE_PCI_DEVICE_TABLE(vx855_pci_tbl) = { 122 122 { PCI_DEVICE(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_VX855) }, 123 123 { 0, } 124 124 };