diff options
Diffstat (limited to 'drivers/hwmon/lm75.c')
-rw-r--r-- | drivers/hwmon/lm75.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/lm75.c b/drivers/hwmon/lm75.c index a40166ffad12..4fa32205e44c 100644 --- a/drivers/hwmon/lm75.c +++ b/drivers/hwmon/lm75.c | |||
@@ -95,7 +95,7 @@ static ssize_t set_temp(struct device *dev, struct device_attribute *da, | |||
95 | struct i2c_client *client = to_i2c_client(dev); | 95 | struct i2c_client *client = to_i2c_client(dev); |
96 | struct lm75_data *data = i2c_get_clientdata(client); | 96 | struct lm75_data *data = i2c_get_clientdata(client); |
97 | int nr = attr->index; | 97 | int nr = attr->index; |
98 | unsigned long temp = simple_strtoul(buf, NULL, 10); | 98 | long temp = simple_strtol(buf, NULL, 10); |
99 | 99 | ||
100 | mutex_lock(&data->update_lock); | 100 | mutex_lock(&data->update_lock); |
101 | data->temp[nr] = LM75_TEMP_TO_REG(temp); | 101 | data->temp[nr] = LM75_TEMP_TO_REG(temp); |