summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBill Pemberton <wfp5p@virginia.edu>2009-03-16 22:18:27 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2009-04-03 14:54:10 -0700
commite1c8638f3fb47c25b8dba170aadc8e29619fcd67 (patch)
tree85b822759b8b44bbb5243b2514c549209b4bb936
parent2e2269f90f2bb4e9438849f0690daba5cba29fc5 (diff)
Staging: comedi: Remove pcl711_private typedef
Signed-off-by: Bill Pemberton <wfp5p@virginia.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--drivers/staging/comedi/drivers/pcl711.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/staging/comedi/drivers/pcl711.c b/drivers/staging/comedi/drivers/pcl711.c
index 3e83b6cf693e..fefbe1ca654a 100644
--- a/drivers/staging/comedi/drivers/pcl711.c
+++ b/drivers/staging/comedi/drivers/pcl711.c
@@ -168,7 +168,8 @@ static struct comedi_driver driver_pcl711 = {
COMEDI_INITCLEANUP(driver_pcl711);
-typedef struct {
+struct pcl711_private {
+
int board;
int adchan;
int ntrig;
@@ -177,9 +178,10 @@ typedef struct {
unsigned int ao_readback[2];
unsigned int divisor1;
unsigned int divisor2;
-} pcl711_private;
+};
+
-#define devpriv ((pcl711_private *)dev->private)
+#define devpriv ((struct pcl711_private *)dev->private)
static irqreturn_t pcl711_interrupt(int irq, void *d PT_REGS_ARG)
{
@@ -548,7 +550,7 @@ static int pcl711_attach(struct comedi_device * dev, struct comedi_devconfig * i
if ((ret = alloc_subdevices(dev, 4)) < 0)
return ret;
- if ((ret = alloc_private(dev, sizeof(pcl711_private))) < 0)
+ if ((ret = alloc_private(dev, sizeof(struct pcl711_private))) < 0)
return ret;
s = dev->subdevices + 0;