aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/hwmon/lm90.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/hwmon/lm90.c b/drivers/hwmon/lm90.c
index 8eeb141c85ac..cdff74282955 100644
--- a/drivers/hwmon/lm90.c
+++ b/drivers/hwmon/lm90.c
@@ -470,8 +470,8 @@ static struct lm90_data *lm90_update_device(struct device *dev)
470 470
471 mutex_lock(&data->update_lock); 471 mutex_lock(&data->update_lock);
472 472
473 next_update = data->last_updated 473 next_update = data->last_updated +
474 + msecs_to_jiffies(data->update_interval) + 1; 474 msecs_to_jiffies(data->update_interval);
475 if (time_after(jiffies, next_update) || !data->valid) { 475 if (time_after(jiffies, next_update) || !data->valid) {
476 u8 h, l; 476 u8 h, l;
477 u8 alarms; 477 u8 alarms;