]> 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)
commitb28edc0ad204ff5820195fac94ebe7aa23d556b4
tree8c58eb10e09a805c0bb5215630854b2743324af4
parent847fabf87cc96f257f0d62eb44a95625485a0f4b
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