Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 5470
b: refs/heads/master
c: 0cacdf2
h: refs/heads/master
v: v3
  • Loading branch information
Jean Delvare authored and Linus Torvalds committed Jul 29, 2005
1 parent a5cbece commit 501215d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 368609c5a8bd75b77721e69726ddfd3c6a30f7d4
refs/heads/master: 0cacdf298211ec9e87354cf102f20d070e76e075
5 changes: 2 additions & 3 deletions trunk/drivers/hwmon/atxp1.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/module.h>
#include <linux/jiffies.h>
#include <linux/i2c.h>
#include <linux/i2c-sensor.h>
#include <linux/i2c-vid.h>
Expand Down Expand Up @@ -80,9 +81,7 @@ static struct atxp1_data * atxp1_update_device(struct device *dev)

down(&data->update_lock);

if ((jiffies - data->last_updated > HZ) ||
(jiffies < data->last_updated) ||
!data->valid) {
if (time_after(jiffies, data->last_updated + HZ) || !data->valid) {

/* Update local register data */
data->reg.vid = i2c_smbus_read_byte_data(client, ATXP1_VID);
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/hwmon/fscpos.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@

#include <linux/module.h>
#include <linux/slab.h>
#include <linux/jiffies.h>
#include <linux/i2c.h>
#include <linux/i2c-sensor.h>
#include <linux/init.h>
Expand Down Expand Up @@ -572,8 +573,7 @@ static struct fscpos_data *fscpos_update_device(struct device *dev)

down(&data->update_lock);

if ((jiffies - data->last_updated > 2 * HZ) ||
(jiffies < data->last_updated) || !data->valid) {
if (time_after(jiffies, data->last_updated + 2 * HZ) || !data->valid) {
int i;

dev_dbg(&client->dev, "Starting fscpos update\n");
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/hwmon/gl520sm.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include <linux/module.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/jiffies.h>
#include <linux/i2c.h>
#include <linux/i2c-sensor.h>
#include <linux/i2c-vid.h>
Expand Down Expand Up @@ -678,8 +679,7 @@ static struct gl520_data *gl520_update_device(struct device *dev)

down(&data->update_lock);

if ((jiffies - data->last_updated > 2 * HZ) ||
(jiffies < data->last_updated) || !data->valid) {
if (time_after(jiffies, data->last_updated + 2 * HZ) || !data->valid) {

dev_dbg(&client->dev, "Starting gl520sm update\n");

Expand Down

0 comments on commit 501215d

Please sign in to comment.