summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorH Hartley Sweeten <hsweeten@visionengravers.com>2016-04-14 09:58:00 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-04-28 22:17:28 -0700
commit55f9e7d9d35ac681dc899c9874dec35976c27dda (patch)
tree12d6f2895ea257d321dabf2fe913e33c941a6698 /tools/perf/scripts/python
parent0b235d5ce4e084535e27e0416449d3c3b0d133ea (diff)
downloadkernel-55f9e7d9d35ac681dc899c9874dec35976c27dda.tar.gz
staging: comedi: ni_mio_common: tidy up AO trigger selection
The AO subdevice (*cancel), ni_ao_reset(), always sets the private data 'ao_trigger_select' to 0. So when a command is started the 'trigsel' value in ni_ao_cmd_set_trigger() will always start as 0. Remove the unnecessary member from the private data. The (*do_cmdtest) validates that the cmd->start_src will only be TRIG_INT or TRIG_EXT. Refactor ni_ao_cmd_set_trigger() and remove the BUG() which can never occur. Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Reviewed-by: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions