aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorBill Pemberton <wfp5p@virginia.edu>2009-03-16 22:18:37 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2009-04-03 14:54:11 -0700
commit51091b5420c564093d721d2dad99a55bbb22d0d0 (patch)
tree2d3c256c961d06f0fab9d583f17f6d6d00cb22f5 /drivers
parentbf7f0610c6c215fb8a8cd26b697902810ee5b9e9 (diff)
Staging: comedi: Remove pcl812_private typedef
Signed-off-by: Bill Pemberton <wfp5p@virginia.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/comedi/drivers/pcl812.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/staging/comedi/drivers/pcl812.c b/drivers/staging/comedi/drivers/pcl812.c
index 07a109839b4..424e8096624 100644
--- a/drivers/staging/comedi/drivers/pcl812.c
+++ b/drivers/staging/comedi/drivers/pcl812.c
@@ -386,7 +386,8 @@ static struct comedi_driver driver_pcl812 = {
COMEDI_INITCLEANUP(driver_pcl812);
-typedef struct {
+struct pcl812_private {
+
unsigned char valid; // =1 device is OK
unsigned char dma; // >0 use dma ( usedDMA channel)
unsigned char use_diff; // =1 diff inputs
@@ -418,9 +419,10 @@ typedef struct {
unsigned int last_dma_run; // how many bytes to transfer on last DMA buffer
unsigned int max_812_ai_mode0_rangewait; // setling time for gain
unsigned int ao_readback[2]; // data for AO readback
-} pcl812_private;
+};
+
-#define devpriv ((pcl812_private *)dev->private)
+#define devpriv ((struct pcl812_private *)dev->private)
/*
==============================================================================
@@ -1282,7 +1284,7 @@ static int pcl812_attach(struct comedi_device * dev, struct comedi_devconfig * i
}
dev->iobase = iobase;
- if ((ret = alloc_private(dev, sizeof(pcl812_private))) < 0) {
+ if ((ret = alloc_private(dev, sizeof(struct pcl812_private))) < 0) {
free_resources(dev);
return ret; /* Can't alloc mem */
}