Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
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);
}
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)