diff options
author | Eric Millbrandt <emillbrandt@dekaresearch.com> | 2010-09-03 13:31:05 -0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2010-09-05 15:14:36 -0400 |
commit | eb54ddd4d78e62647b7096e4ada7389dbdf2cea7 (patch) | |
tree | cef6a031b465523fac6e0f5c1b1466e1aa986b02 /drivers/input/input.c | |
parent | d3622e6f05b2134deb5ba8ca2f6bcce5391e7e6d (diff) |
Input: wm97xx-core - add retries to wm97xx_read_aux_adc
Add logic to wm97xx_read_aux_adc() to retry reading the adc if the
sample failed. This could occur if the previous sample was still in
the return register or the sample timed-out. Also avoid a pathologic
failure mode by disabling the digitizer and returning -EBUSY after 5
retries.
Signed-off-by: Eric Millbrandt <emillbrandt@dekaresearch.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input/input.c')
0 files changed, 0 insertions, 0 deletions