OSDN Git Service

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)
commit6347fc88ec4453934a5428e21051ff95cad01180
tree8c58eb10e09a805c0bb5215630854b2743324af4
parent0e1fc793c7e42308dddad103a195dd261c5bf650
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