Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
misc: apds9802als: Fix the logic checking timeout in als_wait_for_dat…
…a_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>
- Loading branch information