aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2013-07-10 14:04:38 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2013-07-10 14:04:38 -0400
commitdc5ef1f56968c67e81ad1c81ab7dce678f480285 (patch)
tree347202387bababc24574216cc9d07040baa74952
parent50aaa6bc047ab3b20321c2a1fdc224401fcd899d (diff)
parent5b0620df9c38438ee245a97b8102ed74556e5505 (diff)
Merge branch 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jdelvare/staging
Pull hwmon update from Jean Delvare. * 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jdelvare/staging: hwmon: (lm63) Drop redundant safety on cache lifetime hwmon: (lm90) Drop redundant safety on cache lifetime
-rw-r--r--drivers/hwmon/lm63.c5
-rw-r--r--drivers/hwmon/lm90.c4
2 files changed, 4 insertions, 5 deletions
diff --git a/drivers/hwmon/lm63.c b/drivers/hwmon/lm63.c
index f644a2e57599..d0def50ea860 100644
--- a/drivers/hwmon/lm63.c
+++ b/drivers/hwmon/lm63.c
@@ -247,9 +247,8 @@ static struct lm63_data *lm63_update_device(struct device *dev)
247 247
248 mutex_lock(&data->update_lock); 248 mutex_lock(&data->update_lock);
249 249
250 next_update = data->last_updated 250 next_update = data->last_updated +
251 + msecs_to_jiffies(data->update_interval) + 1; 251 msecs_to_jiffies(data->update_interval);
252
253 if (time_after(jiffies, next_update) || !data->valid) { 252 if (time_after(jiffies, next_update) || !data->valid) {
254 if (data->config & 0x04) { /* tachometer enabled */ 253 if (data->config & 0x04) { /* tachometer enabled */
255 /* order matters for fan1_input */ 254 /* order matters for fan1_input */
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;