diff options
author | Frans Meulenbroeks <fransmeulenbroeks@gmail.com> | 2012-01-05 13:50:17 -0500 |
---|---|---|
committer | Guenter Roeck <guenter.roeck@ericsson.com> | 2012-03-18 21:26:29 -0400 |
commit | 600151b9de97bd580f9dc09199a10f0c2b65cb97 (patch) | |
tree | 9b8e9c962df0cc4c143697f2025ecf6587a79b97 /drivers/hwmon | |
parent | 7fe83ad877321f44c8141b8334bd2f6614deb739 (diff) |
hwmon: use DEFINE_PCI_DEVICE_TABLE
fix all checkpatch warnings about DEFINE_PCI_DEVICE_TABLE
Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Diffstat (limited to 'drivers/hwmon')
-rw-r--r-- | drivers/hwmon/k10temp.c | 2 | ||||
-rw-r--r-- | drivers/hwmon/k8temp.c | 2 | ||||
-rw-r--r-- | drivers/hwmon/sis5595.c | 2 | ||||
-rw-r--r-- | drivers/hwmon/via686a.c | 2 | ||||
-rw-r--r-- | drivers/hwmon/vt8231.c | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/drivers/hwmon/k10temp.c b/drivers/hwmon/k10temp.c index 41aa6a319870..aba29d63f195 100644 --- a/drivers/hwmon/k10temp.c +++ b/drivers/hwmon/k10temp.c | |||
@@ -205,7 +205,7 @@ static void __devexit k10temp_remove(struct pci_dev *pdev) | |||
205 | pci_set_drvdata(pdev, NULL); | 205 | pci_set_drvdata(pdev, NULL); |
206 | } | 206 | } |
207 | 207 | ||
208 | static const struct pci_device_id k10temp_id_table[] = { | 208 | static DEFINE_PCI_DEVICE_TABLE(k10temp_id_table) = { |
209 | { PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_10H_NB_MISC) }, | 209 | { PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_10H_NB_MISC) }, |
210 | { PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_11H_NB_MISC) }, | 210 | { PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_11H_NB_MISC) }, |
211 | { PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_CNB17H_F3) }, | 211 | { PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_CNB17H_F3) }, |
diff --git a/drivers/hwmon/k8temp.c b/drivers/hwmon/k8temp.c index b923bc2307ad..d985ae3558f8 100644 --- a/drivers/hwmon/k8temp.c +++ b/drivers/hwmon/k8temp.c | |||
@@ -136,7 +136,7 @@ static SENSOR_DEVICE_ATTR_2(temp3_input, S_IRUGO, show_temp, NULL, 1, 0); | |||
136 | static SENSOR_DEVICE_ATTR_2(temp4_input, S_IRUGO, show_temp, NULL, 1, 1); | 136 | static SENSOR_DEVICE_ATTR_2(temp4_input, S_IRUGO, show_temp, NULL, 1, 1); |
137 | static DEVICE_ATTR(name, S_IRUGO, show_name, NULL); | 137 | static DEVICE_ATTR(name, S_IRUGO, show_name, NULL); |
138 | 138 | ||
139 | static const struct pci_device_id k8temp_ids[] = { | 139 | static DEFINE_PCI_DEVICE_TABLE(k8temp_ids) = { |
140 | { PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_K8_NB_MISC) }, | 140 | { PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_K8_NB_MISC) }, |
141 | { 0 }, | 141 | { 0 }, |
142 | }; | 142 | }; |
diff --git a/drivers/hwmon/sis5595.c b/drivers/hwmon/sis5595.c index 47d7ce9af8fb..33242456e2d2 100644 --- a/drivers/hwmon/sis5595.c +++ b/drivers/hwmon/sis5595.c | |||
@@ -699,7 +699,7 @@ static struct sis5595_data *sis5595_update_device(struct device *dev) | |||
699 | return data; | 699 | return data; |
700 | } | 700 | } |
701 | 701 | ||
702 | static const struct pci_device_id sis5595_pci_ids[] = { | 702 | static DEFINE_PCI_DEVICE_TABLE(sis5595_pci_ids) = { |
703 | { PCI_DEVICE(PCI_VENDOR_ID_SI, PCI_DEVICE_ID_SI_503) }, | 703 | { PCI_DEVICE(PCI_VENDOR_ID_SI, PCI_DEVICE_ID_SI_503) }, |
704 | { 0, } | 704 | { 0, } |
705 | }; | 705 | }; |
diff --git a/drivers/hwmon/via686a.c b/drivers/hwmon/via686a.c index 25e91665a0a2..1424f0a1e498 100644 --- a/drivers/hwmon/via686a.c +++ b/drivers/hwmon/via686a.c | |||
@@ -777,7 +777,7 @@ static struct via686a_data *via686a_update_device(struct device *dev) | |||
777 | return data; | 777 | return data; |
778 | } | 778 | } |
779 | 779 | ||
780 | static const struct pci_device_id via686a_pci_ids[] = { | 780 | static DEFINE_PCI_DEVICE_TABLE(via686a_pci_ids) = { |
781 | { PCI_DEVICE(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_82C686_4) }, | 781 | { PCI_DEVICE(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_82C686_4) }, |
782 | { 0, } | 782 | { 0, } |
783 | }; | 783 | }; |
diff --git a/drivers/hwmon/vt8231.c b/drivers/hwmon/vt8231.c index db3b2e8d2a67..11d6a39d2b9e 100644 --- a/drivers/hwmon/vt8231.c +++ b/drivers/hwmon/vt8231.c | |||
@@ -699,7 +699,7 @@ static struct platform_driver vt8231_driver = { | |||
699 | .remove = __devexit_p(vt8231_remove), | 699 | .remove = __devexit_p(vt8231_remove), |
700 | }; | 700 | }; |
701 | 701 | ||
702 | static const struct pci_device_id vt8231_pci_ids[] = { | 702 | static DEFINE_PCI_DEVICE_TABLE(vt8231_pci_ids) = { |
703 | { PCI_DEVICE(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_8231_4) }, | 703 | { PCI_DEVICE(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_8231_4) }, |
704 | { 0, } | 704 | { 0, } |
705 | }; | 705 | }; |