diff options
| author | H Hartley Sweeten <[email protected]> | 2014-11-04 10:54:11 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2014-11-07 09:33:59 -0800 |
| commit | d0bb66aa082c23741e85df459f7444f86cd86792 (patch) | |
| tree | 6c201bb4cecc73c80effee027e7a17de33f0c0c1 /tools/perf/scripts | |
| parent | ea0bb9d221d14b622dedeaa10bd5f6ac525e6efd (diff) | |
staging: comedi: addi_apci_3120: introduce apci3120_ai_reset_fifo()
A dummy read of APCI3120_TIMER_MODE_REG resets the analog input FIFO. Introduce
a helper function to clarify this.
It's not necessary to do a dummy read of the FIFO (base + 0) before reseting it.
Remove the unnecessary dummy reads.
The APCI3120_TIMER_MODE_REG is a 16-bit register. This fixes a couple 8-bit reads.
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')
0 files changed, 0 insertions, 0 deletions