hwmon: (asc7621) Fix multi-line comments
Subsystems (2)
Guenter Roeck
maintainerPATCH 15/82 hwmon: (asc7621) Fix multi-line comments
Cc George Joseph <[email protected]>
Signed-off-by Guenter Roeck <[email protected]>
--- drivers/hwmon/asc7621.c | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-)
drivers/hwmon/asc7621.c +5 -3
@@ -268,9 +268,11 @@ static ssize_t store_fan16(struct device *dev,if (kstrtol (buf,10 , &reqval))return -EINVAL ; -/* If a minimum RPM of zero is requested, then we set the register to -0xffff. This value allows the fan to be stopped completely without -generating an alarm. */ +/* +* If a minimum RPM of zero is requested, then we set the register to +* 0xffff. This value allows the fan to be stopped completely without +* generating an alarm. +*/ reqval (reqval <=0 ?0xffff :SENSORS_LIMIT (5400000 / reqval,0 ,0xfffe ));
Signature · 7 lines
1.7.5.4 _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Quoted 25 lines · Guenter Roeck
Cc George Joseph <[email protected]>Signed-off-by Guenter Roeck <[email protected]>---
drivers/hwmon/asc7621.c | 8 +++++---1 files changed, 5 insertions(+), 3 deletions(-)drivers/hwmon/asc7621.c +5
-3@@ -268,9 +268,11 @@ static ssize_t store_fan16(struct device *dev, if (kstrtol(buf, 10, &reqval)) return -EINVAL; - /* If a minimum RPM of zero is requested, then we set the register to -0xffff. This value allows the fan to be stopped completely without -generating an alarm. */ + /* +* If a minimum RPM of zero is requested, then we set the register to +* 0xffff. This value allows the fan to be stopped completely without +* generating an alarm. +*/ reqval =
(reqval <= 0 ?0xffff:SENSORS_LIMIT(5400000 / reqval, 0, 0xfffe));
Quoted 3 lines
--
1.7.5.4
Acked-by George Joseph <[email protected]>
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors