staging: comedi: drivers: use comedi_dio_insn_config() for complex cases
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Mon, 5 Aug 2013 22:01:25 +0000 (15:01 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 12 Aug 2013 22:04:02 +0000 (15:04 -0700)
commitf21c53945cb95f66faa9636af5f23cb00ba73019
tree499073498176b1f60d0e518f5ec81de3ddbb5b69
parent42ef678bef336a83fd0ae0b03a56c0a93665a18b
staging: comedi: drivers: use comedi_dio_insn_config() for complex cases

Convert the drivers with complex, port programmable i/o, to use the
comedi_dio_insn_config() helper function.

All of these drivers have some sort of 'port' programmable i/o where multiple
i/o channels are configured as a group. The 'mask' associated with the group
is passed to comedi_dio_insn_config() so that all the channels are configured.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
15 files changed:
drivers/staging/comedi/drivers/8255.c
drivers/staging/comedi/drivers/addi_apci_16xx.c
drivers/staging/comedi/drivers/addi_apci_3xxx.c
drivers/staging/comedi/drivers/adv_pci1723.c
drivers/staging/comedi/drivers/amplc_dio200_common.c
drivers/staging/comedi/drivers/cb_das16_cs.c
drivers/staging/comedi/drivers/dt2801.c
drivers/staging/comedi/drivers/dt3000.c
drivers/staging/comedi/drivers/gsc_hpdi.c
drivers/staging/comedi/drivers/ii_pci20kc.c
drivers/staging/comedi/drivers/me4000.c
drivers/staging/comedi/drivers/me_daq.c
drivers/staging/comedi/drivers/ni_at_ao.c
drivers/staging/comedi/drivers/pcm3724.c
drivers/staging/comedi/drivers/s526.c