diff options
| author | H Hartley Sweeten <[email protected]> | 2013-01-23 12:44:40 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2013-01-25 12:00:30 -0800 |
| commit | 5458f3e7b5a8707a49948857d69b2eb2fa5931ac (patch) | |
| tree | 055072e33cf40c5f5c669cfcddf4e7feb48436d5 /tools/perf/scripts/python | |
| parent | 99c9fa48b6bbc640066c414d6b413a1f1b4aa857 (diff) | |
staging: comedi: addi_apci_3501: introduce apci3501_wait_for_dac()
Refactor the code that waits for the DAC to be ready into a helper
function.
A timeout of some sort should be added to this helper so code the
users to expect the error condition. In i_APCI3501_WriteAnalogOutput()
just return the error and don't actually write the new value to the
DAC. In apci3501_reset() output a dev_warn() that the DAC was not
ready.
Signed-off-by: H Hartley Sweeten <[email protected]>
Cc: Ian Abbott <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions