linux-hardened/drivers/staging/comedi
H Hartley Sweeten 1bf448e278 staging: comedi: addi_apci_2016: fix digital output 'insn_bits' function
This driver does not follow the comedi API. The digital output 'insn_bits'
function is passed a mask value in data[0] indicating which output bits in
data[1] are changing. The function is then supposed to update the outputs
accordingly and then return the current state of the outputs in data[1].

Currently this driver uses the 'insn_write' function to update either a
single or all the output channels. And it uses the 'insn_bits' function
to read either a single or all the output channel states.

Fix the 'insn_bits' function so it works like the comedi core expects. The
core can then use the function to emulate the 'insn_read' and 'insn_write'
functions for individual channels.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-11-13 11:21:39 -08:00
..
drivers staging: comedi: addi_apci_2016: fix digital output 'insn_bits' function 2012-11-13 11:21:39 -08:00
kcomedilib staging/comedi: Use dev_ printks in kcomedilib/kcomedilib_main.c 2012-10-22 12:47:56 -07:00
comedi.h staging: comedi: comedi.h: add clock sources for amplc_dio200 timer 2012-10-24 15:25:22 -07:00
comedi_compat32.c staging: comedi: shrink comedi_compat32.h 2012-06-20 12:57:43 -07:00
comedi_compat32.h staging: comedi: shrink comedi_compat32.h 2012-06-20 12:57:43 -07:00
comedi_fops.c staging: comedi: fix memory leak for saved channel list 2012-09-21 09:29:53 -07:00
comedi_internal.h staging: comedi: remove comedi_fops.h 2012-06-20 12:56:55 -07:00
comedidev.h staging: comedi: comedidev.h: make comedi_board() parameter const 2012-11-06 09:28:58 +01:00
comedilib.h
drivers.c staging: comedi: support auto_attach() for PCI and USB 2012-10-29 15:02:08 -07:00
Kconfig staging: comedi: addi_apci_3120: merge in addi_apci_3001 driver 2012-11-02 11:23:47 -07:00
Makefile
proc.c staging: comedi: remove comedi_fops.h 2012-06-20 12:56:55 -07:00
range.c staging: comedi: range: remove subdevice pointer math 2012-09-05 20:06:32 -07:00
TODO