From: Chase Southwood Date: Sat, 21 Jun 2014 22:25:58 +0000 (-0500) Subject: staging: comedi: addi_apci_1564: add Change-of-State interrupt subdevice and required... X-Git-Tag: omap-for-v3.17/fixes-against-rc2~166^2~1519 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1e15687ea472614d48416c53bebcf213c07a5532;p=pandora-kernel.git staging: comedi: addi_apci_1564: add Change-of-State interrupt subdevice and required functions This board supports an interrupt that can be generated by an AND/OR combination of 16 of the input channels. Create a separate subdevice to handle this interrupt. The apci1564_di_config() function is used to configure which inputs are used to generate the interrupt. Currently this function is broken since it does not follow the comedi API for insn_config functions. Fix this function by implementing the config instruction INSN_CONFIG_DIGITAL_TRIG. Add the remaining subdevice operations necessary for the interrupt subdevice to support async commands. Signed-off-by: Chase Southwood Reviewed-by: Ian Abbott Cc: H Hartley Sweeten Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed