diff options
Diffstat (limited to 'drivers/hwmon/ad7418.c')
-rw-r--r-- | drivers/hwmon/ad7418.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/ad7418.c b/drivers/hwmon/ad7418.c index cc8b624a1e51..879ea72ee3bd 100644 --- a/drivers/hwmon/ad7418.c +++ b/drivers/hwmon/ad7418.c | |||
@@ -172,7 +172,7 @@ static ssize_t set_temp(struct device *dev, struct device_attribute *devattr, | |||
172 | struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); | 172 | struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); |
173 | struct i2c_client *client = to_i2c_client(dev); | 173 | struct i2c_client *client = to_i2c_client(dev); |
174 | struct ad7418_data *data = i2c_get_clientdata(client); | 174 | struct ad7418_data *data = i2c_get_clientdata(client); |
175 | int temp = simple_strtol(buf, NULL, 10); | 175 | long temp = simple_strtol(buf, NULL, 10); |
176 | 176 | ||
177 | mutex_lock(&data->lock); | 177 | mutex_lock(&data->lock); |
178 | data->temp[attr->index] = LM75_TEMP_TO_REG(temp); | 178 | data->temp[attr->index] = LM75_TEMP_TO_REG(temp); |