]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
iio: proximity: rfd77402: Align polling timeout with datasheet
authorShrikant Raskar <raskar.shree97@gmail.com>
Wed, 28 Jan 2026 17:51:49 +0000 (23:21 +0530)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 29 Jan 2026 17:46:47 +0000 (17:46 +0000)
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>
drivers/iio/proximity/rfd77402.c

index 4499939215e7f9999c46b67fc87f3ffccde4aef0..6cae805632a285b956fb375ae2f66e8a6d1072af 100644 (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) {