diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-12-03 02:10:29 -0500 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2014-01-15 00:36:30 -0500 |
commit | cd9bb0564c551f8a72763dd45590e9ea6787811e (patch) | |
tree | 009f16efee0737510a2ad6e99ac75271427b2b66 /drivers/hwmon | |
parent | 3f9aec7610b39521c7c69d754de7265f6994c194 (diff) |
hwmon: remove DEFINE_PCI_DEVICE_TABLE macro
Don't use DEFINE_PCI_DEVICE_TABLE macro, because this macro
is not preferred.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Acked-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon')
-rw-r--r-- | drivers/hwmon/fam15h_power.c | 2 | ||||
-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 |
6 files changed, 6 insertions, 6 deletions
diff --git a/drivers/hwmon/fam15h_power.c b/drivers/hwmon/fam15h_power.c index dff841085baf..6040121a405a 100644 --- a/drivers/hwmon/fam15h_power.c +++ b/drivers/hwmon/fam15h_power.c | |||
@@ -249,7 +249,7 @@ static void fam15h_power_remove(struct pci_dev *pdev) | |||
249 | sysfs_remove_group(&dev->kobj, &fam15h_power_attr_group); | 249 | sysfs_remove_group(&dev->kobj, &fam15h_power_attr_group); |
250 | } | 250 | } |
251 | 251 | ||
252 | static DEFINE_PCI_DEVICE_TABLE(fam15h_power_id_table) = { | 252 | static const struct pci_device_id fam15h_power_id_table[] = { |
253 | { PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_15H_NB_F4) }, | 253 | { PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_15H_NB_F4) }, |
254 | { PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_16H_NB_F4) }, | 254 | { PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_16H_NB_F4) }, |
255 | {} | 255 | {} |
diff --git a/drivers/hwmon/k10temp.c b/drivers/hwmon/k10temp.c index d65f3fd895dd..e375e9fabba9 100644 --- a/drivers/hwmon/k10temp.c +++ b/drivers/hwmon/k10temp.c | |||
@@ -204,7 +204,7 @@ static void k10temp_remove(struct pci_dev *pdev) | |||
204 | &sensor_dev_attr_temp1_crit_hyst.dev_attr); | 204 | &sensor_dev_attr_temp1_crit_hyst.dev_attr); |
205 | } | 205 | } |
206 | 206 | ||
207 | static DEFINE_PCI_DEVICE_TABLE(k10temp_id_table) = { | 207 | static const struct pci_device_id k10temp_id_table[] = { |
208 | { PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_10H_NB_MISC) }, | 208 | { PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_10H_NB_MISC) }, |
209 | { PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_11H_NB_MISC) }, | 209 | { PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_11H_NB_MISC) }, |
210 | { PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_CNB17H_F3) }, | 210 | { PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_CNB17H_F3) }, |
diff --git a/drivers/hwmon/k8temp.c b/drivers/hwmon/k8temp.c index 5b50e9e4f96b..734d55d48cc8 100644 --- a/drivers/hwmon/k8temp.c +++ b/drivers/hwmon/k8temp.c | |||
@@ -135,7 +135,7 @@ static SENSOR_DEVICE_ATTR_2(temp3_input, S_IRUGO, show_temp, NULL, 1, 0); | |||
135 | static SENSOR_DEVICE_ATTR_2(temp4_input, S_IRUGO, show_temp, NULL, 1, 1); | 135 | static SENSOR_DEVICE_ATTR_2(temp4_input, S_IRUGO, show_temp, NULL, 1, 1); |
136 | static DEVICE_ATTR(name, S_IRUGO, show_name, NULL); | 136 | static DEVICE_ATTR(name, S_IRUGO, show_name, NULL); |
137 | 137 | ||
138 | static DEFINE_PCI_DEVICE_TABLE(k8temp_ids) = { | 138 | static const struct pci_device_id k8temp_ids[] = { |
139 | { PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_K8_NB_MISC) }, | 139 | { PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_K8_NB_MISC) }, |
140 | { 0 }, | 140 | { 0 }, |
141 | }; | 141 | }; |
diff --git a/drivers/hwmon/sis5595.c b/drivers/hwmon/sis5595.c index 72a889702f0d..e74bd7e620e8 100644 --- a/drivers/hwmon/sis5595.c +++ b/drivers/hwmon/sis5595.c | |||
@@ -754,7 +754,7 @@ static struct sis5595_data *sis5595_update_device(struct device *dev) | |||
754 | return data; | 754 | return data; |
755 | } | 755 | } |
756 | 756 | ||
757 | static DEFINE_PCI_DEVICE_TABLE(sis5595_pci_ids) = { | 757 | static const struct pci_device_id sis5595_pci_ids[] = { |
758 | { PCI_DEVICE(PCI_VENDOR_ID_SI, PCI_DEVICE_ID_SI_503) }, | 758 | { PCI_DEVICE(PCI_VENDOR_ID_SI, PCI_DEVICE_ID_SI_503) }, |
759 | { 0, } | 759 | { 0, } |
760 | }; | 760 | }; |
diff --git a/drivers/hwmon/via686a.c b/drivers/hwmon/via686a.c index c9dcce8c3dc3..babd732b4e18 100644 --- a/drivers/hwmon/via686a.c +++ b/drivers/hwmon/via686a.c | |||
@@ -824,7 +824,7 @@ static struct via686a_data *via686a_update_device(struct device *dev) | |||
824 | return data; | 824 | return data; |
825 | } | 825 | } |
826 | 826 | ||
827 | static DEFINE_PCI_DEVICE_TABLE(via686a_pci_ids) = { | 827 | static const struct pci_device_id via686a_pci_ids[] = { |
828 | { PCI_DEVICE(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_82C686_4) }, | 828 | { PCI_DEVICE(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_82C686_4) }, |
829 | { } | 829 | { } |
830 | }; | 830 | }; |
diff --git a/drivers/hwmon/vt8231.c b/drivers/hwmon/vt8231.c index aee14e2192f8..b3babe3326fb 100644 --- a/drivers/hwmon/vt8231.c +++ b/drivers/hwmon/vt8231.c | |||
@@ -766,7 +766,7 @@ static struct platform_driver vt8231_driver = { | |||
766 | .remove = vt8231_remove, | 766 | .remove = vt8231_remove, |
767 | }; | 767 | }; |
768 | 768 | ||
769 | static DEFINE_PCI_DEVICE_TABLE(vt8231_pci_ids) = { | 769 | static const struct pci_device_id vt8231_pci_ids[] = { |
770 | { PCI_DEVICE(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_8231_4) }, | 770 | { PCI_DEVICE(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_8231_4) }, |
771 | { 0, } | 771 | { 0, } |
772 | }; | 772 | }; |