Skip to contentSkip to conversation

hwmon: (i5k_amb) use DEFINE_PCI_DEVICE_TABLE macro

PATCH Applied Jingoo Han 2 participants 2 messages Nov 28, 2013 Hardware monitoring

lore
Share & tools
lore

Jingoo Han

author
#0 lore raw

PATCH 2/2 hwmon: (i5k_amb) use DEFINE_PCI_DEVICE_TABLE macro

This macro is used to create a struct pci_device_id array.

---
 drivers/hwmon/i5k_amb.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hwmon/i5k_amb.c +1 -1
index 6c0080a..0d33f72 100644
@@ -495,7 +495,7 @@ static struct {
 };
 
 #ifdef MODULE
-static struct pci_device_id i5k_amb_ids[] = {
+static DEFINE_PCI_DEVICE_TABLE(i5k_amb_ids) = {
 	{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_5000_ERR) },
 	{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_5400_ERR) },
 	{ 0, }
Signature · 8 lines
1.7.10.4



_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors