diff options
Diffstat (limited to 'drivers/hwmon')
-rw-r--r-- | drivers/hwmon/adm1026.c | 2 | ||||
-rw-r--r-- | drivers/hwmon/atxp1.c | 5 | ||||
-rw-r--r-- | drivers/hwmon/fscpos.c | 4 | ||||
-rw-r--r-- | drivers/hwmon/gl520sm.c | 4 | ||||
-rw-r--r-- | drivers/hwmon/max1619.c | 2 | ||||
-rw-r--r-- | drivers/hwmon/pc87360.c | 2 |
6 files changed, 9 insertions, 10 deletions
diff --git a/drivers/hwmon/adm1026.c b/drivers/hwmon/adm1026.c index 3c85fe150cd7..4fa17c76eea2 100644 --- a/drivers/hwmon/adm1026.c +++ b/drivers/hwmon/adm1026.c | |||
@@ -393,7 +393,7 @@ void adm1026_init_client(struct i2c_client *client) | |||
393 | 393 | ||
394 | value = data->config3; | 394 | value = data->config3; |
395 | if (data->config3 & CFG3_GPIO16_ENABLE) { | 395 | if (data->config3 & CFG3_GPIO16_ENABLE) { |
396 | dev_dbg(&client->dev, "GPIO16 enabled. THERM" | 396 | dev_dbg(&client->dev, "GPIO16 enabled. THERM " |
397 | "pin disabled.\n"); | 397 | "pin disabled.\n"); |
398 | } else { | 398 | } else { |
399 | dev_dbg(&client->dev, "THERM pin enabled. " | 399 | dev_dbg(&client->dev, "THERM pin enabled. " |
diff --git a/drivers/hwmon/atxp1.c b/drivers/hwmon/atxp1.c index 0bcf82b4c07b..fca3fc1cef72 100644 --- a/drivers/hwmon/atxp1.c +++ b/drivers/hwmon/atxp1.c | |||
@@ -21,6 +21,7 @@ | |||
21 | #include <linux/kernel.h> | 21 | #include <linux/kernel.h> |
22 | #include <linux/init.h> | 22 | #include <linux/init.h> |
23 | #include <linux/module.h> | 23 | #include <linux/module.h> |
24 | #include <linux/jiffies.h> | ||
24 | #include <linux/i2c.h> | 25 | #include <linux/i2c.h> |
25 | #include <linux/i2c-sensor.h> | 26 | #include <linux/i2c-sensor.h> |
26 | #include <linux/i2c-vid.h> | 27 | #include <linux/i2c-vid.h> |
@@ -80,9 +81,7 @@ static struct atxp1_data * atxp1_update_device(struct device *dev) | |||
80 | 81 | ||
81 | down(&data->update_lock); | 82 | down(&data->update_lock); |
82 | 83 | ||
83 | if ((jiffies - data->last_updated > HZ) || | 84 | if (time_after(jiffies, data->last_updated + HZ) || !data->valid) { |
84 | (jiffies < data->last_updated) || | ||
85 | !data->valid) { | ||
86 | 85 | ||
87 | /* Update local register data */ | 86 | /* Update local register data */ |
88 | data->reg.vid = i2c_smbus_read_byte_data(client, ATXP1_VID); | 87 | data->reg.vid = i2c_smbus_read_byte_data(client, ATXP1_VID); |
diff --git a/drivers/hwmon/fscpos.c b/drivers/hwmon/fscpos.c index 3beaa6191ef4..270015b626ad 100644 --- a/drivers/hwmon/fscpos.c +++ b/drivers/hwmon/fscpos.c | |||
@@ -32,6 +32,7 @@ | |||
32 | 32 | ||
33 | #include <linux/module.h> | 33 | #include <linux/module.h> |
34 | #include <linux/slab.h> | 34 | #include <linux/slab.h> |
35 | #include <linux/jiffies.h> | ||
35 | #include <linux/i2c.h> | 36 | #include <linux/i2c.h> |
36 | #include <linux/i2c-sensor.h> | 37 | #include <linux/i2c-sensor.h> |
37 | #include <linux/init.h> | 38 | #include <linux/init.h> |
@@ -572,8 +573,7 @@ static struct fscpos_data *fscpos_update_device(struct device *dev) | |||
572 | 573 | ||
573 | down(&data->update_lock); | 574 | down(&data->update_lock); |
574 | 575 | ||
575 | if ((jiffies - data->last_updated > 2 * HZ) || | 576 | if (time_after(jiffies, data->last_updated + 2 * HZ) || !data->valid) { |
576 | (jiffies < data->last_updated) || !data->valid) { | ||
577 | int i; | 577 | int i; |
578 | 578 | ||
579 | dev_dbg(&client->dev, "Starting fscpos update\n"); | 579 | dev_dbg(&client->dev, "Starting fscpos update\n"); |
diff --git a/drivers/hwmon/gl520sm.c b/drivers/hwmon/gl520sm.c index a13a504f5bfa..80ae8d30c2af 100644 --- a/drivers/hwmon/gl520sm.c +++ b/drivers/hwmon/gl520sm.c | |||
@@ -24,6 +24,7 @@ | |||
24 | #include <linux/module.h> | 24 | #include <linux/module.h> |
25 | #include <linux/init.h> | 25 | #include <linux/init.h> |
26 | #include <linux/slab.h> | 26 | #include <linux/slab.h> |
27 | #include <linux/jiffies.h> | ||
27 | #include <linux/i2c.h> | 28 | #include <linux/i2c.h> |
28 | #include <linux/i2c-sensor.h> | 29 | #include <linux/i2c-sensor.h> |
29 | #include <linux/i2c-vid.h> | 30 | #include <linux/i2c-vid.h> |
@@ -678,8 +679,7 @@ static struct gl520_data *gl520_update_device(struct device *dev) | |||
678 | 679 | ||
679 | down(&data->update_lock); | 680 | down(&data->update_lock); |
680 | 681 | ||
681 | if ((jiffies - data->last_updated > 2 * HZ) || | 682 | if (time_after(jiffies, data->last_updated + 2 * HZ) || !data->valid) { |
682 | (jiffies < data->last_updated) || !data->valid) { | ||
683 | 683 | ||
684 | dev_dbg(&client->dev, "Starting gl520sm update\n"); | 684 | dev_dbg(&client->dev, "Starting gl520sm update\n"); |
685 | 685 | ||
diff --git a/drivers/hwmon/max1619.c b/drivers/hwmon/max1619.c index bf553dcd97d6..3c159f1d49ee 100644 --- a/drivers/hwmon/max1619.c +++ b/drivers/hwmon/max1619.c | |||
@@ -363,7 +363,7 @@ static void __exit sensors_max1619_exit(void) | |||
363 | i2c_del_driver(&max1619_driver); | 363 | i2c_del_driver(&max1619_driver); |
364 | } | 364 | } |
365 | 365 | ||
366 | MODULE_AUTHOR("Alexey Fisher <fishor@mail.ru> and" | 366 | MODULE_AUTHOR("Alexey Fisher <fishor@mail.ru> and " |
367 | "Jean Delvare <khali@linux-fr.org>"); | 367 | "Jean Delvare <khali@linux-fr.org>"); |
368 | MODULE_DESCRIPTION("MAX1619 sensor driver"); | 368 | MODULE_DESCRIPTION("MAX1619 sensor driver"); |
369 | MODULE_LICENSE("GPL"); | 369 | MODULE_LICENSE("GPL"); |
diff --git a/drivers/hwmon/pc87360.c b/drivers/hwmon/pc87360.c index 876c68f3af31..fa4032d53b79 100644 --- a/drivers/hwmon/pc87360.c +++ b/drivers/hwmon/pc87360.c | |||
@@ -1043,7 +1043,7 @@ static void pc87360_init_client(struct i2c_client *client, int use_thermistors) | |||
1043 | if (init >= 2 && data->innr) { | 1043 | if (init >= 2 && data->innr) { |
1044 | reg = pc87360_read_value(data, LD_IN, NO_BANK, | 1044 | reg = pc87360_read_value(data, LD_IN, NO_BANK, |
1045 | PC87365_REG_IN_CONVRATE); | 1045 | PC87365_REG_IN_CONVRATE); |
1046 | dev_info(&client->dev, "VLM conversion set to" | 1046 | dev_info(&client->dev, "VLM conversion set to " |
1047 | "1s period, 160us delay\n"); | 1047 | "1s period, 160us delay\n"); |
1048 | pc87360_write_value(data, LD_IN, NO_BANK, | 1048 | pc87360_write_value(data, LD_IN, NO_BANK, |
1049 | PC87365_REG_IN_CONVRATE, | 1049 | PC87365_REG_IN_CONVRATE, |