summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorShrikant Raskar <raskar.shree97@gmail.com>2026-01-28 23:21:49 +0530
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2026-01-29 17:46:47 +0000
commit36bff1842330b3eddaf5a7977eb00a724fc42c27 (patch)
tree88d7a9035fc0db094d17c1bbacd989de2426bf52 /drivers
parent0077e9b985482e5c020468c6257f8508f68aa0b2 (diff)
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/iio/proximity/rfd77402.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/iio/proximity/rfd77402.c b/drivers/iio/proximity/rfd77402.c
index 4499939215e7..6cae805632a2 100644
--- a/drivers/iio/proximity/rfd77402.c
+++ b/drivers/iio/proximity/rfd77402.c
@@ -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) {