Re: [PATCH v2 3/4] staging: comedi: drivers: use comedi_dio_insn_config() for simple cases

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2013-08-06 17:32, H Hartley Sweeten wrote:
Convert the drivers with simple, per channel programmable i/o, to use the
comedi_dio_insn_config() helper function.

All of these pass a 'mask' of '0' to comedi_dio_insn_config() this causes
the per channel mask to be used to configure the i/o direction.

Signed-off-by: H Hartley Sweeten <hsweeten@xxxxxxxxxxxxxxxxxxx>
Cc: Ian Abbott <abbotti@xxxxxxxxx>
Cc: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
---
  drivers/staging/comedi/drivers/cb_pcidas64.c   | 25 +++------
  drivers/staging/comedi/drivers/ni_670x.c       | 25 +++------
  drivers/staging/comedi/drivers/ni_daq_700.c    | 24 ++++----
  drivers/staging/comedi/drivers/ni_mio_common.c | 57 ++++---------------
  drivers/staging/comedi/drivers/ni_pcidio.c     | 29 +++-------
  drivers/staging/comedi/drivers/pcmmio.c        | 71 +++++------------------
  drivers/staging/comedi/drivers/pcmuio.c        | 24 +++-----
  drivers/staging/comedi/drivers/rtd520.c        | 20 ++-----
  drivers/staging/comedi/drivers/s626.c          | 22 ++------
  drivers/staging/comedi/drivers/ssv_dnp.c       | 78 ++++++++++----------------
  drivers/staging/comedi/drivers/usbdux.c        | 19 ++-----
  drivers/staging/comedi/drivers/usbduxsigma.c   | 20 ++-----
  12 files changed, 113 insertions(+), 301 deletions(-)

Reviewed-by: Ian Abbott <abbotti@xxxxxxxxx>

--
-=( Ian Abbott @ MEV Ltd.    E-mail: <abbotti@xxxxxxxxx>        )=-
-=( Tel: +44 (0)161 477 1898   FAX: +44 (0)161 718 3587         )=-
_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel




[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux