aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorH Hartley Sweeten <hsweeten@visionengravers.com>2015-01-26 16:17:19 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-01-28 11:14:04 -0800
commit42c44682a59a6ea38a301c20a4ec807c6fabdd02 (patch)
tree5b414ed7f77e8042567a74124b310ab0f1df9327 /tools/perf/scripts/python
parentstaging: comedi: das16: change type of private data 'timer_running' (diff)
downloadlinux-dev-42c44682a59a6ea38a301c20a4ec807c6fabdd02.tar.xz
linux-dev-42c44682a59a6ea38a301c20a4ec807c6fabdd02.zip
staging: comedi: das16: use comedi_async 'scans_done' to detect EOA
Refactor das16_interrupt() to use the comedi_async 'scans_done' member to detect the End-of-Acquisition for the async command. Use the helper function comedi_nsamples_left() to determine if DMA needs to be restarted. This allows the removal of the private data 'adc_byte_count' and fixes a possible integer overflow issue when that value is calculated. 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