aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBill Pemberton <wfp5p@virginia.edu>2009-03-16 22:15:08 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2009-04-03 14:54:08 -0700
commitfa11f7a978b9b93f46408ead81dba035828c1ff9 (patch)
treed61e0d993ce9aa1195e8568b15304578c923d973
parentc14e9208359c615f2e565277a607237635a1e413 (diff)
Staging: comedi: Remove fl512_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/fl512.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/staging/comedi/drivers/fl512.c b/drivers/staging/comedi/drivers/fl512.c
index 6fe747d8dd1..6d7bb37d2b1 100644
--- a/drivers/staging/comedi/drivers/fl512.c
+++ b/drivers/staging/comedi/drivers/fl512.c
@@ -24,10 +24,12 @@ Configuration options:
#include <linux/ioport.h>
#define FL512_SIZE 16 /* the size of the used memory */
-typedef struct {
+struct fl512_private {
+
short ao_readback[2];
-} fl512_private;
-#define devpriv ((fl512_private *) dev->private)
+};
+
+#define devpriv ((struct fl512_private *) dev->private)
static const struct comedi_lrange range_fl512 = { 4, {
BIP_RANGE(0.5),
@@ -138,7 +140,7 @@ static int fl512_attach(struct comedi_device * dev, struct comedi_devconfig * it
}
dev->iobase = iobase;
dev->board_name = "fl512";
- if (alloc_private(dev, sizeof(fl512_private)) < 0)
+ if (alloc_private(dev, sizeof(struct fl512_private)) < 0)
return -ENOMEM;
#if DEBUG