diff options
| author | H Hartley Sweeten <hsweeten@visionengravers.com> | 2015-01-26 16:17:19 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-01-28 11:14:04 -0800 |
| commit | 42c44682a59a6ea38a301c20a4ec807c6fabdd02 (patch) | |
| tree | 5b414ed7f77e8042567a74124b310ab0f1df9327 /tools/perf/scripts/python | |
| parent | 29538110470aec8a9b0a378d10371821d8f6e27e (diff) | |
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
