diff options
| author | 2016-01-12 11:05:10 -0700 | |
|---|---|---|
| committer | 2016-02-07 18:35:16 -0800 | |
| commit | f08a28e65cbdf80b4b4da7e423c45ee7c3ef35ac (patch) | |
| tree | aa7775d120bc48117e70cebe89535ca59dff0c7f /tools/perf/scripts/python | |
| parent | staging: comedi: ni_tiocmd: change mistaken use of start_src for start_arg (diff) | |
staging: comedi: ni_mio_common: use CR_CHAN more consistently
Generally, the CR_CHAN macro is/should be used to access the relevant bits
for channel identification in cmd->*_arg when the corresponding
cmd->*_src==TRIG_EXT, including cmd->convert_arg in this case.
This patch does not fix a bug per se, as NISTC_AI_MODE1_CONVERT_SRC() already
masks the value sufficiently, but using CR_CHAN() here makes the code clearer as
it avoids passing some irrelevant bits to NISTC_AI_MODE1_CONVERT_SRC() in the
first place.
Signed-off-by: Spencer E. Olson <olsonse@umich.edu>
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
