diff options
author | Bill Pemberton <wfp5p@virginia.edu> | 2009-03-16 22:19:15 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-04-03 14:54:11 -0700 |
commit | 9335f2613b6beca0f3f3e20ce5a550d1ffe66aa2 (patch) | |
tree | 0c7a3ba752760a635484a6f86f096777ae94e923 /drivers | |
parent | 70a6001aeffeaa12f2a1c21470e8f3bdfb6ef8e7 (diff) |
Staging: comedi: Remove rti800_private typedef
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/rti800.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/staging/comedi/drivers/rti800.c b/drivers/staging/comedi/drivers/rti800.c index bd579711a519..594c5e82211f 100644 --- a/drivers/staging/comedi/drivers/rti800.c +++ b/drivers/staging/comedi/drivers/rti800.c @@ -145,7 +145,7 @@ COMEDI_INITCLEANUP(driver_rti800); static irqreturn_t rti800_interrupt(int irq, void *dev PT_REGS_ARG); -typedef struct { +struct rti800_private { enum { adc_diff, adc_pseudodiff, adc_singleended } adc_mux; @@ -164,9 +164,9 @@ typedef struct { const struct comedi_lrange *ao_range_type_list[2]; unsigned int ao_readback[2]; int muxgain_bits; -} rti800_private; +}; -#define devpriv ((rti800_private *)dev->private) +#define devpriv ((struct rti800_private *)dev->private) #define RTI800_TIMEOUT 100 @@ -351,7 +351,7 @@ static int rti800_attach(struct comedi_device * dev, struct comedi_devconfig * i if ((ret = alloc_subdevices(dev, 4)) < 0) return ret; - if ((ret = alloc_private(dev, sizeof(rti800_private))) < 0) + if ((ret = alloc_private(dev, sizeof(struct rti800_private))) < 0) return ret; devpriv->adc_mux = it->options[2]; |