mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 00:53:34 +02:00
iio: proximity: rfd77402: Align polling timeout with datasheet
Update the polling delay to use a 100 ms timeout, as specified in the RFD77402 datasheet. Signed-off-by: Shrikant Raskar <raskar.shree97@gmail.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
This commit is contained in:
parent
0077e9b985
commit
36bff18423
|
|
@ -132,7 +132,11 @@ static int rfd77402_measure(struct i2c_client *client)
|
|||
goto err;
|
||||
if (ret & RFD77402_ICSR_RESULT)
|
||||
break;
|
||||
msleep(20);
|
||||
/*
|
||||
* As per RFD77402 datasheet section '3.1.1 Single Measure',
|
||||
* the suggested timeout value for single measure is 100ms.
|
||||
*/
|
||||
msleep(10);
|
||||
}
|
||||
|
||||
if (tries < 0) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user