Skip to content

Commit

Permalink
Staging: comedi: Remove das6402_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 0c5a144 commit c7b8bb9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/staging/comedi/drivers/das6402.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,12 @@ static struct comedi_driver driver_das6402 = {

COMEDI_INITCLEANUP(driver_das6402);

typedef struct {
struct das6402_private {
int ai_bytes_to_read;

int das6402_ignoreirq;
} das6402_private;
#define devpriv ((das6402_private *)dev->private)
};
#define devpriv ((struct das6402_private *)dev->private)

static void das6402_ai_fifo_dregs(struct comedi_device * dev, struct comedi_subdevice * s);

Expand Down Expand Up @@ -331,7 +331,7 @@ static int das6402_attach(struct comedi_device * dev, struct comedi_devconfig *
}
dev->irq = irq;

if ((ret = alloc_private(dev, sizeof(das6402_private))) < 0)
if ((ret = alloc_private(dev, sizeof(struct das6402_private))) < 0)
return ret;

if ((ret = alloc_subdevices(dev, 1)) < 0)
Expand Down

0 comments on commit c7b8bb9

Please sign in to comment.