drivers/hwmon/lm57.h: fix checkpatch warnings
PATCH 1/1 drivers/hwmon/lm57.h: fix checkpatch warnings
Signed-off-by Frans Meulenbroeks <[email protected]>
--- drivers/hwmon/lm75.h | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-)
drivers/hwmon/lm75.h +2 -3
@@ -1,6 +1,6 @@/* lm75.h - Part of lm_sensors, Linux kernel modules for hardware -monitoring +monitoring Copyright (c) 2003 Mark M. Hoffman <[email protected]> This program is free software; you can redistribute it and/or modify
@@ -37,7 +37,7 @@static inline u16 LM75_TEMP_TO_REG (long temp) {int ntemp =SENSORS_LIMIT (temp,LM75_TEMP_MIN ,LM75_TEMP_MAX ); - ntemp += (ntemp<0 ?-250 :250 ); + ntemp += (ntemp <0 ?-250 :250 );return (u16)((ntemp /500 ) <<7 ); }
@@ -47,4 +47,3 @@ static inline int LM75_TEMP_FROM_REG(u16 reg)guarantee arithmetic shift and preserve the sign */ return ((s16 )reg /128 ) *500 ; } -
Signature · 7 lines
1.7.8.1 _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Guenter Roeck
AppliedRe: [lm-sensors] [PATCH] drivers/hwmon/lm57.h: fix checkpatch
Quoted 1 line · Frans Meulenbroeks
Signed-off-by Frans Meulenbroeks <[email protected]>
Guess you meant lm75.h, not lm57.h ;).
Thanks, applied.
Guenter
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors