summaryrefslogtreecommitdiff
path: root/drivers/iio/light/as73211.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/iio/light/as73211.c')
-rw-r--r--drivers/iio/light/as73211.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/iio/light/as73211.c b/drivers/iio/light/as73211.c
index b1178dfc1f65..7b32dfaee9b3 100644
--- a/drivers/iio/light/as73211.c
+++ b/drivers/iio/light/as73211.c
@@ -259,10 +259,9 @@ static int as73211_req_data(struct as73211_data *data)
data->osr &= ~AS73211_OSR_SS;
/*
- * Add some extra margin for the timeout. sensor timing is not as precise
- * as our one ...
+ * Add 33% extra margin for the timeout. fclk,min = fclk,typ - 27%.
*/
- time_us += time_us / 8;
+ time_us += time_us / 3;
if (data->client->irq) {
ret = wait_for_completion_timeout(&data->completion, usecs_to_jiffies(time_us));
if (!ret) {