diff options
Diffstat (limited to 'drivers/hwmon/asc7621.c')
-rw-r--r-- | drivers/hwmon/asc7621.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/hwmon/asc7621.c b/drivers/hwmon/asc7621.c index 3efd3244998..7caa242915a 100644 --- a/drivers/hwmon/asc7621.c +++ b/drivers/hwmon/asc7621.c | |||
@@ -268,9 +268,11 @@ static ssize_t store_fan16(struct device *dev, | |||
268 | if (kstrtol(buf, 10, &reqval)) | 268 | if (kstrtol(buf, 10, &reqval)) |
269 | return -EINVAL; | 269 | return -EINVAL; |
270 | 270 | ||
271 | /* If a minimum RPM of zero is requested, then we set the register to | 271 | /* |
272 | 0xffff. This value allows the fan to be stopped completely without | 272 | * If a minimum RPM of zero is requested, then we set the register to |
273 | generating an alarm. */ | 273 | * 0xffff. This value allows the fan to be stopped completely without |
274 | * generating an alarm. | ||
275 | */ | ||
274 | reqval = | 276 | reqval = |
275 | (reqval <= 0 ? 0xffff : SENSORS_LIMIT(5400000 / reqval, 0, 0xfffe)); | 277 | (reqval <= 0 ? 0xffff : SENSORS_LIMIT(5400000 / reqval, 0, 0xfffe)); |
276 | 278 | ||