summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBill Pemberton <wfp5p@virginia.edu>2009-03-16 22:18:32 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2009-04-03 14:54:10 -0700
commitbf7f0610c6c215fb8a8cd26b697902810ee5b9e9 (patch)
treeaa13ab06e8f3bce81805449ddbe7930713321aee
parente1c8638f3fb47c25b8dba170aadc8e29619fcd67 (diff)
Staging: comedi: Remove pcl726_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/pcl726.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/staging/comedi/drivers/pcl726.c b/drivers/staging/comedi/drivers/pcl726.c
index 8f0425f280ec..deda5de70579 100644
--- a/drivers/staging/comedi/drivers/pcl726.c
+++ b/drivers/staging/comedi/drivers/pcl726.c
@@ -161,12 +161,14 @@ static struct comedi_driver driver_pcl726 = {
COMEDI_INITCLEANUP(driver_pcl726);
-typedef struct {
+struct pcl726_private {
+
int bipolar[12];
const struct comedi_lrange *rangelist[12];
unsigned int ao_readback[12];
-} pcl726_private;
-#define devpriv ((pcl726_private *)dev->private)
+};
+
+#define devpriv ((struct pcl726_private *)dev->private)
static int pcl726_ao_insn(struct comedi_device * dev, struct comedi_subdevice * s,
struct comedi_insn * insn, unsigned int * data)
@@ -260,7 +262,7 @@ static int pcl726_attach(struct comedi_device * dev, struct comedi_devconfig * i
dev->board_name = this_board->name;
- if ((ret = alloc_private(dev, sizeof(pcl726_private))) < 0)
+ if ((ret = alloc_private(dev, sizeof(struct pcl726_private))) < 0)
return -ENOMEM;
for (i = 0; i < 12; i++) {