]> git.baikalelectronics.ru Git - kernel.git/commit
staging: comedi: addi_apci_1564: add subdevice to check diagnostic status
authorChase Southwood <chase.southwood@gmail.com>
Fri, 1 Aug 2014 01:56:15 +0000 (20:56 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 1 Aug 2014 22:37:22 +0000 (15:37 -0700)
commit240ca0c60f94eab664fbb70085d75128d02c69a6
tree8c58eb10e09a805c0bb5215630854b2743324af4
parent364f8245c94a1084060112a304df41e90518df8f
staging: comedi: addi_apci_1564: add subdevice to check diagnostic status

This board provides VCC/CC diagnostic information, and it also supports
diagnostic interrupts.  However, as per Ian, these interrupts aren't very
useful and it is enough to simply provide an interface for accessing the
diagnostic status on-demand.  This patch adds a 2-channel digital input
subdevice with an insn_bits handler to access this information.

Signed-off-by: Chase Southwood <chase.southwood@gmail.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Cc: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/addi_apci_1564.c