From 673bc56adb5df0e041231493eb75de146c63ac74 Mon Sep 17 00:00:00 2001 From: Bill Pemberton Date: Mon, 16 Mar 2009 22:08:35 -0400 Subject: [PATCH] Staging: comedi: Remove diosubd_data typedef Signed-off-by: Bill Pemberton Signed-off-by: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adv_pci_dio.c | 24 ++++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/drivers/staging/comedi/drivers/adv_pci_dio.c b/drivers/staging/comedi/drivers/adv_pci_dio.c index e571496e55c3..0229734cacb1 100644 --- a/drivers/staging/comedi/drivers/adv_pci_dio.c +++ b/drivers/staging/comedi/drivers/adv_pci_dio.c @@ -186,12 +186,12 @@ enum hw_io_access { static int pci_dio_attach(struct comedi_device * dev, struct comedi_devconfig * it); static int pci_dio_detach(struct comedi_device * dev); -typedef struct { +struct diosubd_data { int chans; // num of chans int addr; // PCI address ofset int regs; // number of registers to read or 8255 subdevices unsigned int specflags; // addon subdevice flags -} diosubd_data; +}; typedef struct { const char *name; // board name @@ -199,10 +199,10 @@ typedef struct { int device_id; int main_pci_region; // main I/O PCI region enum hw_cards_id cardtype; - diosubd_data sdi[MAX_DI_SUBDEVS]; // DI chans - diosubd_data sdo[MAX_DO_SUBDEVS]; // DO chans - diosubd_data sdio[MAX_DIO_SUBDEVG]; // DIO 8255 chans - diosubd_data boardid; // card supports board ID switch + struct diosubd_data sdi[MAX_DI_SUBDEVS]; // DI chans + struct diosubd_data sdo[MAX_DO_SUBDEVS]; // DO chans + struct diosubd_data sdio[MAX_DIO_SUBDEVG]; // DIO 8255 chans + struct diosubd_data boardid; // card supports board ID switch enum hw_io_access io_access; } boardtype; @@ -360,7 +360,7 @@ static pci_dio_private *pci_priv = NULL; /* list of allocated cards */ static int pci_dio_insn_bits_di_b(struct comedi_device * dev, struct comedi_subdevice * s, struct comedi_insn * insn, unsigned int * data) { - const diosubd_data *d = (const diosubd_data *)s->private; + const struct diosubd_data *d = (const struct diosubd_data *)s->private; int i; data[1] = 0; @@ -377,7 +377,7 @@ static int pci_dio_insn_bits_di_b(struct comedi_device * dev, struct comedi_subd static int pci_dio_insn_bits_di_w(struct comedi_device * dev, struct comedi_subdevice * s, struct comedi_insn * insn, unsigned int * data) { - const diosubd_data *d = (const diosubd_data *)s->private; + const struct diosubd_data *d = (const struct diosubd_data *)s->private; int i; data[1] = 0; @@ -393,7 +393,7 @@ static int pci_dio_insn_bits_di_w(struct comedi_device * dev, struct comedi_subd static int pci_dio_insn_bits_do_b(struct comedi_device * dev, struct comedi_subdevice * s, struct comedi_insn * insn, unsigned int * data) { - const diosubd_data *d = (const diosubd_data *)s->private; + const struct diosubd_data *d = (const struct diosubd_data *)s->private; int i; if (data[0]) { @@ -414,7 +414,7 @@ static int pci_dio_insn_bits_do_b(struct comedi_device * dev, struct comedi_subd static int pci_dio_insn_bits_do_w(struct comedi_device * dev, struct comedi_subdevice * s, struct comedi_insn * insn, unsigned int * data) { - const diosubd_data *d = (const diosubd_data *)s->private; + const struct diosubd_data *d = (const struct diosubd_data *)s->private; int i; if (data[0]) { @@ -803,7 +803,7 @@ static int pci1760_attach(struct comedi_device * dev, struct comedi_devconfig * ============================================================================== */ static int pci_dio_add_di(struct comedi_device * dev, struct comedi_subdevice * s, - const diosubd_data * d, int subdev) + const struct diosubd_data * d, int subdev) { s->type = COMEDI_SUBD_DI; s->subdev_flags = SDF_READABLE | SDF_GROUND | SDF_COMMON | d->specflags; @@ -830,7 +830,7 @@ static int pci_dio_add_di(struct comedi_device * dev, struct comedi_subdevice * ============================================================================== */ static int pci_dio_add_do(struct comedi_device * dev, struct comedi_subdevice * s, - const diosubd_data * d, int subdev) + const struct diosubd_data * d, int subdev) { s->type = COMEDI_SUBD_DO; s->subdev_flags = SDF_WRITABLE | SDF_GROUND | SDF_COMMON; -- 2.20.1