mfd: Convert to DEFINE_PCI_DEVICE_TABLE
PATCH 1/1 mfd: Convert to DEFINE_PCI_DEVICE_TABLE
Convert static struct pci_device_id *[] to static DEFINE_PCI_DEVICE_TABLE tables.
Cc Andres Salomon <[email protected]>
Cc Denis Turischev <[email protected]>
Cc Ben Dooks <[email protected]>
Cc Vincent Sanders <[email protected]>
Cc Mocean Laboratories <[email protected]>
Cc Harald Welte <[email protected]>
Signed-off-by Axel Lin <[email protected]>
--- drivers/mfd/cs5535-mfd.c | 2 +- drivers/mfd/lpc_sch.c | 2 +- drivers/mfd/sm501.c | 2 +- drivers/mfd/timberdale.c | 2 +- drivers/mfd/vx855.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-)
drivers/mfd/cs5535-mfd.c +1 -1
@@ -172,7 +172,7 @@ static void __devexit cs5535_mfd_remove(struct pci_dev *pdev)pci_disable_device (pdev); } -static struct pci_device_id cs5535_mfd_pci_tbl[] = { +static DEFINE_PCI_DEVICE_TABLE (cs5535_mfd_pci_tbl) = { {PCI_DEVICE (PCI_VENDOR_ID_NS ,PCI_DEVICE_ID_NS_CS5535_ISA ) }, {PCI_DEVICE (PCI_VENDOR_ID_AMD ,PCI_DEVICE_ID_AMD_CS5536_ISA ) }, {0 , }
drivers/mfd/lpc_sch.c +1 -1
@@ -74,7 +74,7 @@ static struct mfd_cell tunnelcreek_cells[] = { }, }; -static struct pci_device_id lpc_sch_ids[] = { +static DEFINE_PCI_DEVICE_TABLE (lpc_sch_ids) = { {PCI_DEVICE (PCI_VENDOR_ID_INTEL ,PCI_DEVICE_ID_INTEL_SCH_LPC ) }, {PCI_DEVICE (PCI_VENDOR_ID_INTEL ,PCI_DEVICE_ID_INTEL_ITC_LPC ) }, {0 , }
drivers/mfd/sm501.c +1 -1
@@ -1720,7 +1720,7 @@ static int sm501_plat_remove(struct platform_device *dev)return 0 ; } -static struct pci_device_id sm501_pci_tbl[] = { +static DEFINE_PCI_DEVICE_TABLE (sm501_pci_tbl) = { {0x126f ,0x0501 ,PCI_ANY_ID ,PCI_ANY_ID ,0 ,0 ,0 }, {0 , }, };
drivers/mfd/timberdale.c +1 -1
@@ -857,7 +857,7 @@ static void __devexit timb_remove(struct pci_dev *dev)kfree (priv); } -static struct pci_device_id timberdale_pci_tbl[] = { +static DEFINE_PCI_DEVICE_TABLE (timberdale_pci_tbl) = { {PCI_DEVICE (PCI_VENDOR_ID_TIMB ,PCI_DEVICE_ID_TIMB ) }, {0 } };
drivers/mfd/vx855.c +1 -1
@@ -118,7 +118,7 @@ static void __devexit vx855_remove(struct pci_dev *pdev)pci_disable_device (pdev); } -static struct pci_device_id vx855_pci_tbl[] = { +static DEFINE_PCI_DEVICE_TABLE (vx855_pci_tbl) = { {PCI_DEVICE (PCI_VENDOR_ID_VIA ,PCI_DEVICE_ID_VIA_VX855 ) }, {0 , } };
Signature · 1 line
1.7.5.4
Hi Axel,
thanks for your patch. This is trivial, but I'm still sending an Ack:
Quoted 10 lines · Axel Lin
Convert static struct
pci_device_id*[] to staticDEFINE_PCI_DEVICE_TABLEtables.Cc Andres Salomon <[email protected]>Cc Denis Turischev <[email protected]>Cc Ben Dooks <[email protected]>Cc Vincent Sanders <[email protected]>Cc Mocean Laboratories <[email protected]>Cc Harald Welte <[email protected]>Signed-off-by Axel Lin <[email protected]>
Acked-by Harald Welte <[email protected]>
Signature · 4 lines
- Harald Welte <[email protected]> http://laforge.gnumonks.org/ ============================================================================ "Privacy in residential applications is a desirable marketing option." (ETSI EN 300 175-7 Ch. A6)
Hi Axel,
Quoted 2 lines · Axel Lin
Convert static struct
pci_device_id*[] to staticDEFINE_PCI_DEVICE_TABLEtables.
Looks good, I applied it.
Cheers,
Samuel.
Signature · 2 lines
Intel Open Source Technology Centre http://oss.intel.com/