Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 220467
b: refs/heads/master
c: e3cd952
h: refs/heads/master
i:
  220465: ba161d6
  220463: 6329ff5
v: v3
  • Loading branch information
Shubhrajyoti D authored and Jean Delvare committed Oct 28, 2010
1 parent 0635796 commit d1b3e03
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 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: c4f99a2b8fb4c564865f0037a2b7be690d4409f3
refs/heads/master: e3cd9528af4d1fd404eefe16e52ae421f99a7817
7 changes: 6 additions & 1 deletion trunk/drivers/hwmon/lm75.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,12 @@ static ssize_t set_temp(struct device *dev, struct device_attribute *da,
struct i2c_client *client = to_i2c_client(dev);
struct lm75_data *data = i2c_get_clientdata(client);
int nr = attr->index;
long temp = simple_strtol(buf, NULL, 10);
long temp;
int error;

error = strict_strtol(buf, 10, &temp);
if (error)
return error;

mutex_lock(&data->update_lock);
data->temp[nr] = LM75_TEMP_TO_REG(temp);
Expand Down

0 comments on commit d1b3e03

Please sign in to comment.