From 0e99a2b9a2367e47bebf8bdbb5aa0ce14d586968 Mon Sep 17 00:00:00 2001 From: Bill Pemberton Date: Mon, 16 Mar 2009 22:15:18 -0400 Subject: [PATCH] Staging: comedi: Remove pci20xxx_private typedef Signed-off-by: Bill Pemberton Signed-off-by: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ii_pci20kc.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/drivers/staging/comedi/drivers/ii_pci20kc.c b/drivers/staging/comedi/drivers/ii_pci20kc.c index a31f0d20fcf2..624d44c3969f 100644 --- a/drivers/staging/comedi/drivers/ii_pci20kc.c +++ b/drivers/staging/comedi/drivers/ii_pci20kc.c @@ -148,12 +148,14 @@ typedef union { } pci20341; } pci20xxx_subdev_private; -typedef struct { +struct pci20xxx_private { + void *ioaddr; pci20xxx_subdev_private subdev_private[PCI20000_MODULES]; -} pci20xxx_private; +}; + -#define devpriv ((pci20xxx_private *)dev->private) +#define devpriv ((struct pci20xxx_private *)dev->private) #define CHAN (CR_CHAN(it->chanlist[0])) static int pci20xxx_attach(struct comedi_device * dev, struct comedi_devconfig * it); @@ -209,7 +211,7 @@ static int pci20xxx_attach(struct comedi_device * dev, struct comedi_devconfig * if ((ret = alloc_subdevices(dev, 1 + PCI20000_MODULES)) < 0) return ret; - if ((ret = alloc_private(dev, sizeof(pci20xxx_private))) < 0) + if ((ret = alloc_private(dev, sizeof(struct pci20xxx_private))) < 0) return ret; devpriv->ioaddr = (void *)(unsigned long)it->options[0]; @@ -255,7 +257,7 @@ static int pci20xxx_attach(struct comedi_device * dev, struct comedi_devconfig * } } - /* initialize pci20xxx_private */ + /* initialize struct pci20xxx_private */ pci20xxx_dio_init(dev, dev->subdevices + PCI20000_MODULES); return 1; @@ -449,7 +451,7 @@ static int pci20xxx_dio_insn_bits(struct comedi_device * dev, struct comedi_subd static int pci20xxx_dio_insn_config(struct comedi_device * dev, struct comedi_subdevice * s, struct comedi_insn * insn, unsigned int * data); -/* initialize pci20xxx_private */ +/* initialize struct pci20xxx_private */ static int pci20xxx_dio_init(struct comedi_device * dev, struct comedi_subdevice * s) { -- 2.20.1