• Guenter Roeck's avatar
    hwmon: (w83781d) Fix checkpatch issues · c531eb3f
    Guenter Roeck authored
    Fixed:
    ERROR: code indent should use tabs where possible
    ERROR: do not use assignment in if condition
    ERROR: "foo* bar" should be "foo *bar"
    ERROR: space prohibited after that open parenthesis '('
    ERROR: space required after that ',' (ctx:VxV)
    ERROR: spaces required around that '==' (ctx:VxV)
    WARNING: line over 80 characters
    WARNING: simple_strtol is obsolete, use kstrtol instead
    WARNING: simple_strtoul is obsolete, use kstrtoul instead
    WARNING: space prohibited between function name and open parenthesis '('
    
    Not fixed (false positive):
    ERROR: Macros with multiple statements should be enclosed in a do - while loop
    ERROR: Macros with complex values should be enclosed in parenthesis
    
    Not all fixed (code complexity):
    ERROR: do not use assignment in if condition
    Acked-by: default avatarJean Delvare <khali@linux-fr.org>
    Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
    c531eb3f
w83781d.c 57.5 KB