diff options
Diffstat (limited to 'drivers/hwmon/tmp102.c')
-rw-r--r-- | drivers/hwmon/tmp102.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/tmp102.c b/drivers/hwmon/tmp102.c index b10c3d36ccbc..523dd89ba498 100644 --- a/drivers/hwmon/tmp102.c +++ b/drivers/hwmon/tmp102.c | |||
@@ -115,7 +115,7 @@ static ssize_t tmp102_set_temp(struct device *dev, | |||
115 | 115 | ||
116 | if (kstrtol(buf, 10, &val) < 0) | 116 | if (kstrtol(buf, 10, &val) < 0) |
117 | return -EINVAL; | 117 | return -EINVAL; |
118 | val = SENSORS_LIMIT(val, -256000, 255000); | 118 | val = clamp_val(val, -256000, 255000); |
119 | 119 | ||
120 | mutex_lock(&tmp102->lock); | 120 | mutex_lock(&tmp102->lock); |
121 | tmp102->temp[sda->index] = val; | 121 | tmp102->temp[sda->index] = val; |