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