Skip to content

Commit

Permalink
Staging: comedi: Remove rti800_private typedef
Browse files Browse the repository at this point in the history
Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Bill Pemberton authored and Greg Kroah-Hartman committed Apr 3, 2009
1 parent 70a6001 commit 9335f26
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/staging/comedi/drivers/rti800.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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

Expand Down Expand Up @@ -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];
Expand Down

0 comments on commit 9335f26

Please sign in to comment.