Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 36721
b: refs/heads/master
c: b9e349f
h: refs/heads/master
i:
  36719: 8df2796
v: v3
  • Loading branch information
Jean Delvare authored and Greg Kroah-Hartman committed Sep 28, 2006
1 parent aa88e7d commit dc7cada
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: 9060f8bdd0c40e31d2be388e59f2dbeea55988a2
refs/heads/master: b9e349f710376ef55f200e9fa07e88b4fe2cdf98
4 changes: 2 additions & 2 deletions trunk/drivers/hwmon/it87.c
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ static inline u16 FAN16_TO_REG(long rpm)
static int DIV_TO_REG(int val)
{
int answer = 0;
while ((val >>= 1) != 0)
while (answer < 7 && (val >>= 1))
answer++;
return answer;
}
Expand Down Expand Up @@ -563,7 +563,7 @@ static ssize_t set_fan_div(struct device *dev, struct device_attribute *attr,

struct i2c_client *client = to_i2c_client(dev);
struct it87_data *data = i2c_get_clientdata(client);
int val = simple_strtol(buf, NULL, 10);
unsigned long val = simple_strtoul(buf, NULL, 10);
int i, min[3];
u8 old;

Expand Down

0 comments on commit dc7cada

Please sign in to comment.