diff options
| author | H Hartley Sweeten <[email protected]> | 2016-04-20 10:36:39 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2016-04-28 22:18:51 -0700 |
| commit | 51d430056c2a695ff7ffc62ae917c413616ec6b2 (patch) | |
| tree | 59ebf8ce24b512d474c80777b37db36e78baed84 /tools/perf/scripts/python/flamegraph.py | |
| parent | 33b0b6913d1304407f71a6a92ef1ad9e064cdf01 (diff) | |
staging: comedi: mite: introduce mite_sync_dma()
The struct mite_channel 'dir' member specifies if the dma is input
or output. Wrap the mite_sync_input_dma() and mite_sync_output_dma()
functions with a single mite_sync_dma() so that the drivers don't
have to worry about the sync direction.
The functions that actually sync the input/output dma currently return
-1 if an overflow/underrun is detected otherwise they return 0. If an
overflow/underrun is detected the async->event COMEDI_CB_OVERFLOW is
also set.
The callers never check the return value anyway so just make the
functions return void. The async->event can be checked if necessary
to detect any errors.
Signed-off-by: H Hartley Sweeten <[email protected]>
Reviewed-by: Ian Abbott <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions