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:
Shrikant Raskar 2026-01-28 23:21:49 +05:30 committed by Jonathan Cameron
parent 0077e9b985
commit 36bff18423

View File

@ -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) {