aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorH Hartley Sweeten <[email protected]>2014-07-14 12:23:43 -0700
committerGreg Kroah-Hartman <[email protected]>2014-07-16 13:24:42 -0700
commitbfb0c28ba03a46740c80848ba7b93fafb91de033 (patch)
tree1891b46c4cce2bb7f3be8adc66710dddc7d795ee /tools/perf/scripts/python
parent87b4fe5c877b178949c71e017e4a129e29aae37e (diff)
staging: comedi: ni_mio_common: fix ni_ao_insn_write()
Comedi (*insn_write) functions are expected to write insn->n values to the hardware. Fix this function to work like the core expects. Also, don't rely on the return value of ni_ao_comfig_chanlist() to determine if the values need converted to two's complement before writing to the hardware. Use the comedi_range_is_bipolar() and comedi_offset_munge() helpers to clarify the code. Signed-off-by: H Hartley Sweeten <[email protected]> Reviewed-by: Ian Abbott <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions