diff options
| author | H Hartley Sweeten <hsweeten@visionengravers.com> | 2014-10-30 11:32:28 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-11-03 16:30:04 -0800 |
| commit | 0c8c1c0ad8edce6c0d0a7d78b5ab6cb2ee4722f1 (patch) | |
| tree | ff33de37833465aadc6ac36f7b5b997c7b775265 /tools/perf/scripts/python/sctop.py | |
| parent | a7d3de75cf00574f8d360d51d0e1beb3c561cc89 (diff) | |
staging: comedi: rtd520: fix ai_read_n() async->cur_chan use
This functions uses the async->cur_chan to determine if the current channel
is using a bipolar range and the sample needs to be munged. The cur_chan is
never incremented so all the samples are munged based on the fist channel
in the cmd->chanlist.
Bump the cur_chan after writing each sample. This fixes the code so that
the munging will be done correctly.
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/sctop.py')
0 files changed, 0 insertions, 0 deletions
