Skip to content

Commit

Permalink
Staging: comedi: Remove dt2814_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 7f435c0 commit ca6f10c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions drivers/staging/comedi/drivers/dt2814.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,13 @@ COMEDI_INITCLEANUP(driver_dt2814);

static irqreturn_t dt2814_interrupt(int irq, void *dev PT_REGS_ARG);

typedef struct {
struct dt2814_private {

int ntrig;
int curadchan;
} dt2814_private;
#define devpriv ((dt2814_private *)dev->private)
};

#define devpriv ((struct dt2814_private *)dev->private)

#define DT2814_TIMEOUT 10
#define DT2814_MAX_SPEED 100000 /* Arbitrary 10 khz limit */
Expand Down Expand Up @@ -309,7 +311,7 @@ static int dt2814_attach(struct comedi_device * dev, struct comedi_devconfig * i

if ((ret = alloc_subdevices(dev, 1)) < 0)
return ret;
if ((ret = alloc_private(dev, sizeof(dt2814_private))) < 0)
if ((ret = alloc_private(dev, sizeof(struct dt2814_private))) < 0)
return ret;

s = dev->subdevices + 0;
Expand Down

0 comments on commit ca6f10c

Please sign in to comment.