aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJiri Slaby <jirislaby@gmail.com>2007-02-10 04:45:29 -0500
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-02-11 13:51:30 -0500
commit224299d444ce97e0c78a9e8ea930589ff8861404 (patch)
tree9dce18ace63cbadc9cab487814a46ee1f617dbc9
parentc5b466e70fef18f7e0de88f81fad0b83614444a8 (diff)
[PATCH] Char: moxa, devids cleanup
Move them to pci_ids.h Signed-off-by: Jiri Slaby <jirislaby@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r--drivers/char/moxa.c19
-rw-r--r--include/linux/pci_ids.h3
2 files changed, 6 insertions, 16 deletions
diff --git a/drivers/char/moxa.c b/drivers/char/moxa.c
index 3c8858cbe102..381c79e9b350 100644
--- a/drivers/char/moxa.c
+++ b/drivers/char/moxa.c
@@ -64,19 +64,6 @@
64#define MOXA_BUS_TYPE_ISA 0 64#define MOXA_BUS_TYPE_ISA 0
65#define MOXA_BUS_TYPE_PCI 1 65#define MOXA_BUS_TYPE_PCI 1
66 66
67#ifndef PCI_VENDOR_ID_MOXA
68#define PCI_VENDOR_ID_MOXA 0x1393
69#endif
70#ifndef PCI_DEVICE_ID_CP204J
71#define PCI_DEVICE_ID_CP204J 0x2040
72#endif
73#ifndef PCI_DEVICE_ID_C218
74#define PCI_DEVICE_ID_C218 0x2180
75#endif
76#ifndef PCI_DEVICE_ID_C320
77#define PCI_DEVICE_ID_C320 0x3200
78#endif
79
80enum { 67enum {
81 MOXA_BOARD_C218_PCI = 1, 68 MOXA_BOARD_C218_PCI = 1,
82 MOXA_BOARD_C218_ISA, 69 MOXA_BOARD_C218_ISA,
@@ -96,11 +83,11 @@ static char *moxa_brdname[] =
96 83
97#ifdef CONFIG_PCI 84#ifdef CONFIG_PCI
98static struct pci_device_id moxa_pcibrds[] = { 85static struct pci_device_id moxa_pcibrds[] = {
99 { PCI_VENDOR_ID_MOXA, PCI_DEVICE_ID_C218, PCI_ANY_ID, PCI_ANY_ID, 86 { PCI_VENDOR_ID_MOXA, PCI_DEVICE_ID_MOXA_C218, PCI_ANY_ID, PCI_ANY_ID,
100 0, 0, MOXA_BOARD_C218_PCI }, 87 0, 0, MOXA_BOARD_C218_PCI },
101 { PCI_VENDOR_ID_MOXA, PCI_DEVICE_ID_C320, PCI_ANY_ID, PCI_ANY_ID, 88 { PCI_VENDOR_ID_MOXA, PCI_DEVICE_ID_MOXA_C320, PCI_ANY_ID, PCI_ANY_ID,
102 0, 0, MOXA_BOARD_C320_PCI }, 89 0, 0, MOXA_BOARD_C320_PCI },
103 { PCI_VENDOR_ID_MOXA, PCI_DEVICE_ID_CP204J, PCI_ANY_ID, PCI_ANY_ID, 90 { PCI_VENDOR_ID_MOXA, PCI_DEVICE_ID_MOXA_CP204J, PCI_ANY_ID, PCI_ANY_ID,
104 0, 0, MOXA_BOARD_CP204J }, 91 0, 0, MOXA_BOARD_CP204J },
105 { 0 } 92 { 0 }
106}; 93};
diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h
index e67b68ca235a..e5e5b9ffcfb5 100644
--- a/include/linux/pci_ids.h
+++ b/include/linux/pci_ids.h
@@ -1811,6 +1811,9 @@
1811#define PCI_DEVICE_ID_MOXA_C168 0x1680 1811#define PCI_DEVICE_ID_MOXA_C168 0x1680
1812#define PCI_DEVICE_ID_MOXA_CP168U 0x1681 1812#define PCI_DEVICE_ID_MOXA_CP168U 0x1681
1813#define PCI_DEVICE_ID_MOXA_CP168EL 0x1682 1813#define PCI_DEVICE_ID_MOXA_CP168EL 0x1682
1814#define PCI_DEVICE_ID_MOXA_CP204J 0x2040
1815#define PCI_DEVICE_ID_MOXA_C218 0x2180
1816#define PCI_DEVICE_ID_MOXA_C320 0x3200
1814 1817
1815#define PCI_VENDOR_ID_CCD 0x1397 1818#define PCI_VENDOR_ID_CCD 0x1397
1816#define PCI_DEVICE_ID_CCD_2BD0 0x2bd0 1819#define PCI_DEVICE_ID_CCD_2BD0 0x2bd0