From: Ian Abbott Date: Mon, 21 Jul 2014 16:29:05 +0000 (+0100) Subject: staging: comedi: ni_6527: support INSN_CONFIG_DIGITAL_TRIG X-Git-Tag: omap-for-v3.17/fixes-against-rc2~166^2~339 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=110f9e687c1a8490383612817ac03f4b29861da1;p=pandora-kernel.git staging: comedi: ni_6527: support INSN_CONFIG_DIGITAL_TRIG The "edge detection interrupt" subdevice supports the `INSN_CONFIG_CHANGE_NOTIFY` comedi instruction which is only supported by one other driver. The `INSN_CONFIG_DIGITAL_TRIG` comedi instruction is more flexible as it supports both edge and level detection, but is not currently supported by this driver. Add partial support for `INSN_CONFIG_DIGITAL_TRIG`, but only for edge detection. Make use of the `ni6527_set_edge_detection()` used for `INSN_CONFIG_CHANGE_NOTIFY`, but add a parameter holding a mask of the rising and falling edges to be updated and preserve the unmasked edges when updating. Signed-off-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed