Skip to contentSkip to conversation

uio: uio_aec: use DEFINE_PCI_DEVICE_TABLE macro

PATCH New Jingoo Han 1 participant 4 messages Nov 28, 2013 Userspace I/O (UIO)

lore
Share & tools
lore

Jingoo Han

author
#0 lore raw

PATCH 1/4 uio: uio_aec: use DEFINE_PCI_DEVICE_TABLE macro

This macro is used to create a struct pci_device_id array.

---
 drivers/uio/uio_aec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/uio/uio_aec.c +1 -1
index 1549fab..c06f800 100644
@@ -45,7 +45,7 @@
 
 #define MAILBOX			0x0F
 
-static struct pci_device_id ids[] = {
+static DEFINE_PCI_DEVICE_TABLE(ids) = {
 	{ PCI_DEVICE(PCI_VENDOR_ID_AEC, PCI_DEVICE_ID_AEC_VITCLTC), },
 	{ 0, }
 };
Signature · 1 line
1.7.10.4
author
#1 lore raw

PATCH 2/4 uio: uio_cif: use DEFINE_PCI_DEVICE_TABLE macro

This macro is used to create a struct pci_device_id array.

---
 drivers/uio/uio_cif.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/uio/uio_cif.c +1 -1
index 30f533c..07dba37 100644
@@ -111,7 +111,7 @@ static void hilscher_pci_remove(struct pci_dev *dev)
 	kfree (info);
 }
 
-static struct pci_device_id hilscher_pci_ids[] = {
+static DEFINE_PCI_DEVICE_TABLE(hilscher_pci_ids) = {
 	{
 		.vendor =	PCI_VENDOR_ID_PLX,
 		.device =	PCI_DEVICE_ID_PLX_9030,
Signature · 1 line
1.7.10.4
author
#2 lore raw

PATCH 3/4 uio: uio_netx: use DEFINE_PCI_DEVICE_TABLE macro

In reply to Jingoo Han

This macro is used to create a struct pci_device_id array.

---
 drivers/uio/uio_netx.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/uio/uio_netx.c +1 -1
index 4c345db..8e85bfb 100644
@@ -132,7 +132,7 @@ static void netx_pci_remove(struct pci_dev *dev)
 	kfree(info);
 }
 
-static struct pci_device_id netx_pci_ids[] = {
+static DEFINE_PCI_DEVICE_TABLE(netx_pci_ids) = {
 	{
 		.vendor =	PCI_VENDOR_ID_HILSCHER,
 		.device =	PCI_DEVICE_ID_HILSCHER_NETX,
Signature · 1 line
1.7.10.4
author
#3 lore raw

PATCH 4/4 uio: uio_sercos3: use DEFINE_PCI_DEVICE_TABLE macro

In reply to Jingoo Han

This macro is used to create a struct pci_device_id array.

---
 drivers/uio/uio_sercos3.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/uio/uio_sercos3.c +1 -1
index 9cfdfca..f233b03 100644
@@ -196,7 +196,7 @@ static void sercos3_pci_remove(struct pci_dev *dev)
 	kfree(info);
 }
 
-static struct pci_device_id sercos3_pci_ids[] = {
+static DEFINE_PCI_DEVICE_TABLE(sercos3_pci_ids) = {
 	{
 		.vendor =       PCI_VENDOR_ID_PLX,
 		.device =       PCI_DEVICE_ID_PLX_9030,
Signature · 1 line
1.7.10.4