Searched hist:"644 a9d3b" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/misc/ |
H A D | apds9802als.c | 644a9d3b Fri Nov 16 03:17:50 CST 2012 Axel Lin <axel.lin@ingics.com> 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> 644a9d3b Fri Nov 16 03:17:50 CST 2012 Axel Lin <axel.lin@ingics.com> 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>
|