diff options
author | Bill Pemberton <wfp5p@virginia.edu> | 2009-03-16 22:05:08 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-04-03 14:53:56 -0700 |
commit | 71b5f4f11971dea972832ad63a994c7e5b45db6b (patch) | |
tree | a96c8f252e3109b42f9074a9a477c23ce9745ebb /drivers/staging/comedi/drivers/das16.c | |
parent | 790c55415aa31f4c732729f94d2c3a54f7d3bfc2 (diff) |
Staging: comedi: Remove comedi_device typedef
Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/comedi/drivers/das16.c')
-rw-r--r-- | drivers/staging/comedi/drivers/das16.c | 72 |
1 files changed, 36 insertions, 36 deletions
diff --git a/drivers/staging/comedi/drivers/das16.c b/drivers/staging/comedi/drivers/das16.c index dd28385fc12f..07f8856c2c39 100644 --- a/drivers/staging/comedi/drivers/das16.c +++ b/drivers/staging/comedi/drivers/das16.c @@ -326,34 +326,34 @@ struct munge_info { unsigned have_byte:1; }; -static int das16_ao_winsn(comedi_device * dev, comedi_subdevice * s, +static int das16_ao_winsn(struct comedi_device * dev, comedi_subdevice * s, comedi_insn * insn, unsigned int * data); -static int das16_do_wbits(comedi_device * dev, comedi_subdevice * s, +static int das16_do_wbits(struct comedi_device * dev, comedi_subdevice * s, comedi_insn * insn, unsigned int * data); -static int das16_di_rbits(comedi_device * dev, comedi_subdevice * s, +static int das16_di_rbits(struct comedi_device * dev, comedi_subdevice * s, comedi_insn * insn, unsigned int * data); -static int das16_ai_rinsn(comedi_device * dev, comedi_subdevice * s, +static int das16_ai_rinsn(struct comedi_device * dev, comedi_subdevice * s, comedi_insn * insn, unsigned int * data); -static int das16_cmd_test(comedi_device * dev, comedi_subdevice * s, +static int das16_cmd_test(struct comedi_device * dev, comedi_subdevice * s, comedi_cmd * cmd); -static int das16_cmd_exec(comedi_device * dev, comedi_subdevice * s); -static int das16_cancel(comedi_device * dev, comedi_subdevice * s); -static void das16_ai_munge(comedi_device * dev, comedi_subdevice * s, +static int das16_cmd_exec(struct comedi_device * dev, comedi_subdevice * s); +static int das16_cancel(struct comedi_device * dev, comedi_subdevice * s); +static void das16_ai_munge(struct comedi_device * dev, comedi_subdevice * s, void *array, unsigned int num_bytes, unsigned int start_chan_index); -static void das16_reset(comedi_device * dev); +static void das16_reset(struct comedi_device * dev); static irqreturn_t das16_dma_interrupt(int irq, void *d PT_REGS_ARG); static void das16_timer_interrupt(unsigned long arg); -static void das16_interrupt(comedi_device * dev); +static void das16_interrupt(struct comedi_device * dev); -static unsigned int das16_set_pacer(comedi_device * dev, unsigned int ns, +static unsigned int das16_set_pacer(struct comedi_device * dev, unsigned int ns, int flags); -static int das1600_mode_detect(comedi_device * dev); -static unsigned int das16_suggest_transfer_size(comedi_device * dev, +static int das1600_mode_detect(struct comedi_device * dev); +static unsigned int das16_suggest_transfer_size(struct comedi_device * dev, comedi_cmd cmd); -static void reg_dump(comedi_device * dev); +static void reg_dump(struct comedi_device * dev); typedef struct das16_board_struct { const char *name; @@ -698,8 +698,8 @@ static const struct das16_board_struct das16_boards[] = { #define n_das16_boards ((sizeof(das16_boards))/(sizeof(das16_board))) -static int das16_attach(comedi_device * dev, comedi_devconfig * it); -static int das16_detach(comedi_device * dev); +static int das16_attach(struct comedi_device * dev, comedi_devconfig * it); +static int das16_detach(struct comedi_device * dev); static comedi_driver driver_das16 = { driver_name:"das16", module:THIS_MODULE, @@ -742,7 +742,7 @@ struct das16_private_struct { #define devpriv ((struct das16_private_struct *)(dev->private)) #define thisboard ((struct das16_board_struct *)(dev->board_ptr)) -static int das16_cmd_test(comedi_device * dev, comedi_subdevice * s, +static int das16_cmd_test(struct comedi_device * dev, comedi_subdevice * s, comedi_cmd * cmd) { int err = 0, tmp; @@ -893,7 +893,7 @@ static int das16_cmd_test(comedi_device * dev, comedi_subdevice * s, return 0; } -static int das16_cmd_exec(comedi_device * dev, comedi_subdevice * s) +static int das16_cmd_exec(struct comedi_device * dev, comedi_subdevice * s) { comedi_async *async = s->async; comedi_cmd *cmd = &async->cmd; @@ -996,7 +996,7 @@ static int das16_cmd_exec(comedi_device * dev, comedi_subdevice * s) return 0; } -static int das16_cancel(comedi_device * dev, comedi_subdevice * s) +static int das16_cancel(struct comedi_device * dev, comedi_subdevice * s) { unsigned long flags; @@ -1023,7 +1023,7 @@ static int das16_cancel(comedi_device * dev, comedi_subdevice * s) return 0; } -static void das16_reset(comedi_device * dev) +static void das16_reset(struct comedi_device * dev) { outb(0, dev->iobase + DAS16_STATUS); outb(0, dev->iobase + DAS16_CONTROL); @@ -1031,7 +1031,7 @@ static void das16_reset(comedi_device * dev) outb(0, dev->iobase + DAS16_CNTR_CONTROL); } -static int das16_ai_rinsn(comedi_device * dev, comedi_subdevice * s, +static int das16_ai_rinsn(struct comedi_device * dev, comedi_subdevice * s, comedi_insn * insn, unsigned int * data) { int i, n; @@ -1079,7 +1079,7 @@ static int das16_ai_rinsn(comedi_device * dev, comedi_subdevice * s, return n; } -static int das16_di_rbits(comedi_device * dev, comedi_subdevice * s, +static int das16_di_rbits(struct comedi_device * dev, comedi_subdevice * s, comedi_insn * insn, unsigned int * data) { unsigned int bits; @@ -1091,7 +1091,7 @@ static int das16_di_rbits(comedi_device * dev, comedi_subdevice * s, return 2; } -static int das16_do_wbits(comedi_device * dev, comedi_subdevice * s, +static int das16_do_wbits(struct comedi_device * dev, comedi_subdevice * s, comedi_insn * insn, unsigned int * data) { unsigned int wbits; @@ -1111,7 +1111,7 @@ static int das16_do_wbits(comedi_device * dev, comedi_subdevice * s, return 2; } -static int das16_ao_winsn(comedi_device * dev, comedi_subdevice * s, +static int das16_ao_winsn(struct comedi_device * dev, comedi_subdevice * s, comedi_insn * insn, unsigned int * data) { int i; @@ -1138,7 +1138,7 @@ static int das16_ao_winsn(comedi_device * dev, comedi_subdevice * s, static irqreturn_t das16_dma_interrupt(int irq, void *d PT_REGS_ARG) { int status; - comedi_device *dev = d; + struct comedi_device *dev = d; status = inb(dev->iobase + DAS16_STATUS); @@ -1155,7 +1155,7 @@ static irqreturn_t das16_dma_interrupt(int irq, void *d PT_REGS_ARG) static void das16_timer_interrupt(unsigned long arg) { - comedi_device *dev = (comedi_device *) arg; + struct comedi_device *dev = (struct comedi_device *) arg; das16_interrupt(dev); @@ -1169,7 +1169,7 @@ static void das16_timer_interrupt(unsigned long arg) an even transfer count after disabling dma channel. */ -static int disable_dma_on_even(comedi_device * dev) +static int disable_dma_on_even(struct comedi_device * dev) { int residue; int i; @@ -1197,7 +1197,7 @@ static int disable_dma_on_even(comedi_device * dev) return residue; } -static void das16_interrupt(comedi_device * dev) +static void das16_interrupt(struct comedi_device * dev) { unsigned long dma_flags, spin_flags; comedi_subdevice *s = dev->read_subdev; @@ -1273,7 +1273,7 @@ static void das16_interrupt(comedi_device * dev) cfc_handle_events(dev, s); } -static unsigned int das16_set_pacer(comedi_device * dev, unsigned int ns, +static unsigned int das16_set_pacer(struct comedi_device * dev, unsigned int ns, int rounding_flags) { i8253_cascade_ns_to_timer_2div(devpriv->clockbase, &(devpriv->divisor1), @@ -1286,7 +1286,7 @@ static unsigned int das16_set_pacer(comedi_device * dev, unsigned int ns, return ns; } -static void reg_dump(comedi_device * dev) +static void reg_dump(struct comedi_device * dev) { DEBUG_PRINT("********DAS1600 REGISTER DUMP********\n"); DEBUG_PRINT("DAS16_MUX: %x\n", inb(dev->iobase + DAS16_MUX)); @@ -1304,7 +1304,7 @@ static void reg_dump(comedi_device * dev) inb(dev->iobase + DAS1600_STATUS_B)); } -static int das16_probe(comedi_device * dev, comedi_devconfig * it) +static int das16_probe(struct comedi_device * dev, comedi_devconfig * it) { int status; int diobits; @@ -1338,7 +1338,7 @@ static int das16_probe(comedi_device * dev, comedi_devconfig * it) return 0; } -static int das1600_mode_detect(comedi_device * dev) +static int das1600_mode_detect(struct comedi_device * dev) { int status = 0; @@ -1366,7 +1366,7 @@ static int das1600_mode_detect(comedi_device * dev) * 3 Clock speed (in MHz) */ -static int das16_attach(comedi_device * dev, comedi_devconfig * it) +static int das16_attach(struct comedi_device * dev, comedi_devconfig * it) { comedi_subdevice *s; int ret; @@ -1630,7 +1630,7 @@ static int das16_attach(comedi_device * dev, comedi_devconfig * it) return 0; } -static int das16_detach(comedi_device * dev) +static int das16_detach(struct comedi_device * dev) { printk("comedi%d: das16: remove\n", dev->minor); @@ -1674,7 +1674,7 @@ static int das16_detach(comedi_device * dev) COMEDI_INITCLEANUP(driver_das16); // utility function that suggests a dma transfer size in bytes -static unsigned int das16_suggest_transfer_size(comedi_device * dev, +static unsigned int das16_suggest_transfer_size(struct comedi_device * dev, comedi_cmd cmd) { unsigned int size; @@ -1715,7 +1715,7 @@ static unsigned int das16_suggest_transfer_size(comedi_device * dev, return size; } -static void das16_ai_munge(comedi_device * dev, comedi_subdevice * s, +static void das16_ai_munge(struct comedi_device * dev, comedi_subdevice * s, void *array, unsigned int num_bytes, unsigned int start_chan_index) { unsigned int i, num_samples = num_bytes / sizeof(short); |