aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorBill Pemberton <wfp5p@virginia.edu>2009-03-16 22:08:29 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2009-04-03 14:54:00 -0700
commita8f1152e2027ce4987350a6d1d06b3159af80082 (patch)
tree6913942dd0d45ad926aaf8fd48143d3c7837989a /drivers
parent006449f0fe747774438d714dcc4c6193d3a801ea (diff)
Staging: comedi: Remove hw_cards_id and hw_io_access typedefs in adv_pci_dio.c
Signed-off-by: Bill Pemberton <wfp5p@virginia.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/comedi/drivers/adv_pci_dio.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/staging/comedi/drivers/adv_pci_dio.c b/drivers/staging/comedi/drivers/adv_pci_dio.c
index 8f920db83d1..e571496e55c 100644
--- a/drivers/staging/comedi/drivers/adv_pci_dio.c
+++ b/drivers/staging/comedi/drivers/adv_pci_dio.c
@@ -45,8 +45,8 @@ Configuration options:
#define DPRINTK(fmt, args...)
#endif
-// hardware types of the cards
-typedef enum {
+/* hardware types of the cards */
+enum hw_cards_id {
TYPE_PCI1730, TYPE_PCI1733, TYPE_PCI1734, TYPE_PCI1736,
TYPE_PCI1750,
TYPE_PCI1751,
@@ -55,12 +55,12 @@ typedef enum {
TYPE_PCI1754, TYPE_PCI1756,
TYPE_PCI1760,
TYPE_PCI1762
-} hw_cards_id;
+};
-// which I/O instructions to use
-typedef enum {
+/* which I/O instructions to use */
+enum hw_io_access {
IO_8b, IO_16b
-} hw_io_access;
+};
#define MAX_DI_SUBDEVS 2 /* max number of DI subdevices per card */
#define MAX_DO_SUBDEVS 2 /* max number of DO subdevices per card */
@@ -198,12 +198,12 @@ typedef struct {
int vendor_id; // vendor/device PCI ID
int device_id;
int main_pci_region; // main I/O PCI region
- hw_cards_id cardtype; // {enum hw_cards_id_enum}
+ enum hw_cards_id cardtype;
diosubd_data sdi[MAX_DI_SUBDEVS]; // DI chans
diosubd_data sdo[MAX_DO_SUBDEVS]; // DO chans
diosubd_data sdio[MAX_DIO_SUBDEVG]; // DIO 8255 chans
diosubd_data boardid; // card supports board ID switch
- hw_io_access io_access; // {enum hw_io_access_enum}
+ enum hw_io_access io_access;
} boardtype;
static DEFINE_PCI_DEVICE_TABLE(pci_dio_pci_table) = {