aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorH Hartley Sweeten <[email protected]>2013-12-05 16:54:08 -0700
committerGreg Kroah-Hartman <[email protected]>2013-12-06 13:10:02 -0800
commitbeecd01b720f3d907a5eacfc142090cf06326836 (patch)
treef59cec27107475e14009c678e4f599a7faa5e756 /tools/perf/scripts/python/bin
parent063b590413b5d132d542358e7975fe4955bfeb96 (diff)
staging: comedi: pcmuio: fix pcmuio_dio_insn_bits()
This dio subdevice (*insn_bits) function does not follow the "norm" for comedi drivers. It also _appears_ to return the incorrect state of the channels. Use the comedi_dio_update_state() helper to handle the boilerplate for updating the output channel state. Due to the hardware we then need to invert the state and mask the input channels before updating the outputs. Then read the hardware and invert the result to get the current true state of the dio channels. Signed-off-by: H Hartley Sweeten <[email protected]> Cc: Ian Abbott <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions