[PATCH 0/4] staging: comedi: drivers: more users of comedi_dio_insn_config()

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

 



These drivers all improperly implement the (*insn_config) for a DIO subdevice. They
all treat the data[0] value as a flag to configure the channel in insn->chanspec as
either an output or an input. The data[0] value is actually the 'instruction' to be
performed on the channel.

Use the comedi_dio_insn_config() helper to properly handle instructions.

H Hartley Sweeten (4):
  staging: comedi: dt2817: fix dt2817_dio_insn_config()
  staging: comedi: dt282x: fix dt282x_dio_insn_config()
  staging: comedi: dmm32at: fix dmm32at_dio_insn_config()
  staging: comedi: ni_atmio16d: fix atmio16d_dio_insn_config()

 drivers/staging/comedi/drivers/dmm32at.c     | 35 +++++++++++++++-------------
 drivers/staging/comedi/drivers/dt2817.c      | 30 +++++++++++-------------
 drivers/staging/comedi/drivers/dt282x.c      | 25 +++++++++++---------
 drivers/staging/comedi/drivers/ni_atmio16d.c | 22 ++++++++++-------
 4 files changed, 60 insertions(+), 52 deletions(-)

-- 
1.8.3.2

_______________________________________________
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