diff options
author | Axel Lin <axel.lin@ingics.com> | 2012-11-16 10:17:50 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-11-16 13:53:08 +0100 |
commit | 644a9d3b66e6983c2c1f3b24c3006d49b184c871 (patch) | |
tree | b4861582f20654cdb0b76989295bdf55bf842db6 /drivers/mmc | |
parent | misc: hpilo: ignore auxiliary HP iLO BMC's (diff) | |
download | linux-644a9d3b66e6983c2c1f3b24c3006d49b184c871.tar.xz linux-644a9d3b66e6983c2c1f3b24c3006d49b184c871.zip |
misc: apds9802als: Fix the logic checking timeout in als_wait_for_data_ready()
In the case of timeout waiting for data ready, the retry variable is -1.
This also fixes a bug: current code returns -ETIMEDOUT if latest retry success
( which means retry is 0 when exiting the while loop ).
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/mmc')
0 files changed, 0 insertions, 0 deletions