[PATCH v3 2/3] iio: adc: ti-ads1298: Fix timeout comment and value

From: Md Shofiqul Islam

Date: Thu May 07 2026 - 15:11:43 EST


At the lowest supported data rate of 250Hz, one conversion period is
4ms, not 40ms. Fix the comment to correctly reflect the timing and
reduce the timeout from 50ms to 5ms, which is still more than enough
margin.

Signed-off-by: Md Shofiqul Islam <shofiqtest@xxxxxxxxx>
---
drivers/iio/adc/ti-ads1298.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/iio/adc/ti-ads1298.c b/drivers/iio/adc/ti-ads1298.c
index cf5f954206..8957e873e1 100644
--- a/drivers/iio/adc/ti-ads1298.c
+++ b/drivers/iio/adc/ti-ads1298.c
@@ -210,7 +210,7 @@ static int ads1298_read_one(struct ads1298_private *priv, int chan_index)
return ret;
}

- /* Cannot take longer than 40ms (250Hz) */
- ret = wait_for_completion_timeout(&priv->completion, msecs_to_jiffies(50));
+ /* Cannot take longer than 4ms at the lowest rate (250Hz) */
+ ret = wait_for_completion_timeout(&priv->completion, msecs_to_jiffies(5));
if (!ret)
return -ETIMEDOUT;
--
2.54.0.windows.1