Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 326209
b: refs/heads/master
c: a916981
h: refs/heads/master
i:
  326207: 3e79982
v: v3
  • Loading branch information
Guenter Roeck committed Sep 24, 2012
1 parent acbda40 commit 9283355
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 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: 3be8102fe30c09e9b264a2f08ae2f69da7e32eb4
refs/heads/master: a91698135bef4e945b0eee1b676d6ea5085177dc
7 changes: 3 additions & 4 deletions trunk/drivers/hwmon/w83791d.c
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,7 @@ static u8 fan_to_reg(long rpm, int div)
((val) + 500) / 1000)

/* for thermal cruise temp tolerance, 4-bits, LSB = 1 degree Celsius */
#define TOL_TEMP_TO_REG(val) ((val) < 0 ? 0 : \
(val) >= 15000 ? 15 : \
#define TOL_TEMP_TO_REG(val) ((val) >= 15000 ? 15 : \
((val) + 500) / 1000)

#define BEEP_MASK_TO_REG(val) ((val) & 0xffffff)
Expand Down Expand Up @@ -848,10 +847,10 @@ static ssize_t store_temp_target(struct device *dev,
struct i2c_client *client = to_i2c_client(dev);
struct w83791d_data *data = i2c_get_clientdata(client);
int nr = sensor_attr->index;
unsigned long val;
long val;
u8 target_mask;

if (kstrtoul(buf, 10, &val))
if (kstrtol(buf, 10, &val))
return -EINVAL;

mutex_lock(&data->update_lock);
Expand Down

0 comments on commit 9283355

Please sign in to comment.