Commit 63aa142a authored by Bill Pemberton's avatar Bill Pemberton Committed by Greg Kroah-Hartman

Staging: comedi: Remove me4000_info_t typedef

Signed-off-by: default avatarBill Pemberton <wfp5p@virginia.edu>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 126974dc
...@@ -378,7 +378,7 @@ static int me4000_probe(struct comedi_device *dev, struct comedi_devconfig *it) ...@@ -378,7 +378,7 @@ static int me4000_probe(struct comedi_device *dev, struct comedi_devconfig *it)
CALL_PDEBUG("In me4000_probe()\n"); CALL_PDEBUG("In me4000_probe()\n");
/* Allocate private memory */ /* Allocate private memory */
if (alloc_private(dev, sizeof(me4000_info_t)) < 0) if (alloc_private(dev, sizeof(struct me4000_info)) < 0)
return -ENOMEM; return -ENOMEM;
/* /*
......
...@@ -376,7 +376,7 @@ struct me4000_cnt_context { ...@@ -376,7 +376,7 @@ struct me4000_cnt_context {
unsigned long counter_2_reg; unsigned long counter_2_reg;
}; };
typedef struct me4000_info { struct me4000_info {
unsigned long plx_regbase; /* PLX configuration space base address */ unsigned long plx_regbase; /* PLX configuration space base address */
unsigned long me4000_regbase; /* Base address of the ME4000 */ unsigned long me4000_regbase; /* Base address of the ME4000 */
unsigned long timer_regbase; /* Base address of the timer circuit */ unsigned long timer_regbase; /* Base address of the timer circuit */
...@@ -400,9 +400,9 @@ typedef struct me4000_info { ...@@ -400,9 +400,9 @@ typedef struct me4000_info {
struct me4000_ao_context ao_context[4]; /* Vector with analog output specific context */ struct me4000_ao_context ao_context[4]; /* Vector with analog output specific context */
struct me4000_dio_context dio_context; /* Digital I/O specific context */ struct me4000_dio_context dio_context; /* Digital I/O specific context */
struct me4000_cnt_context cnt_context; /* Counter specific context */ struct me4000_cnt_context cnt_context; /* Counter specific context */
} me4000_info_t; };
#define info ((me4000_info_t *)dev->private) #define info ((struct me4000_info *)dev->private)
/*----------------------------------------------------------------------------- /*-----------------------------------------------------------------------------
Defines for analog input Defines for analog input
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment