aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/emc2103.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hwmon/emc2103.c')
-rw-r--r--drivers/hwmon/emc2103.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/emc2103.c b/drivers/hwmon/emc2103.c
index 77f434c58236..b07305622087 100644
--- a/drivers/hwmon/emc2103.c
+++ b/drivers/hwmon/emc2103.c
@@ -405,7 +405,7 @@ static ssize_t set_fan_target(struct device *dev, struct device_attribute *da,
405 if (rpm_target == 0) 405 if (rpm_target == 0)
406 data->fan_target = 0x1fff; 406 data->fan_target = 0x1fff;
407 else 407 else
408 data->fan_target = SENSORS_LIMIT( 408 data->fan_target = clamp_val(
409 (FAN_RPM_FACTOR * data->fan_multiplier) / rpm_target, 409 (FAN_RPM_FACTOR * data->fan_multiplier) / rpm_target,
410 0, 0x1fff); 410 0, 0x1fff);
411 411