Files
linux/drivers
H Hartley Sweeten 5e4116e8f6 staging: comedi: addi_apci_1516: 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:45 -08:00
..
2012-10-15 14:45:51 -04:00
2012-09-26 22:28:21 -04:00
2012-11-10 10:17:31 +00:00
2012-10-24 16:58:53 +02:00
2012-09-24 10:07:40 -07:00
2012-10-17 15:53:03 -05:00
2012-10-16 18:07:12 -07:00