diff options
author | Ian Abbott <abbotti@mev.co.uk> | 2012-11-14 11:22:56 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-11-15 00:25:08 (GMT) |
commit | 33cdce6293dcc0b10dcaa8bb5e6fdc8e56b5968f (patch) | |
tree | 87273aa7b3730503f8ff662ce5843b71d7e04a1e /mm/swap_state.c | |
parent | c3be5c7f1e124a415453c45508c95bff3a6b2308 (diff) | |
download | linux-fsl-qoriq-33cdce6293dcc0b10dcaa8bb5e6fdc8e56b5968f.tar.xz |
staging: comedi: addi_apci_1032: conform to new INSN_CONFIG_DIGITAL_TRIG
Conform to the new definition of the `INSN_CONFIG_DIGITAL_TRIG`
configuration instruction.
Return an error if the 'trigger number' in `data[1]` is non-zero or if
the configuration operation in `data[2]` is not supported. Deal with
the 'left-shift' amount in `data[3]`.
The trigger's input channels can only be configured as a set of rising
and falling edges ('OR' mode) or as a set of high and low levels ('AND'
mode). Preserve the old input channels to the right of the 'left-shift'
value except when switching modes.
(The 'left-shift' support is a bit of an overkill for this driver since
the trigger only has 16 input channels.)
Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'mm/swap_state.c')
0 files changed, 0 insertions, 0 deletions