• Guenter Roeck's avatar
    hwmon: (via686a) Fix checkpatch issues · 9004ac81
    Guenter Roeck authored
    Fixed:
    ERROR: do not use assignment in if condition
    ERROR: open brace '{' following function declarations go on the next line
    ERROR: space prohibited before that close parenthesis ')'
    ERROR: space required after that ',' (ctx:VxV)
    ERROR: spaces required around that '==' (ctx:VxV)
    ERROR: spaces required around that ':' (ctx:VxV)
    ERROR: spaces required around that '?' (ctx:VxV)
    ERROR: that open brace { should be on the previous line
    WARNING: line over 80 characters
    WARNING: simple_strtol is obsolete, use kstrtol instead
    WARNING: simple_strtoul is obsolete, use kstrtoul instead
    
    Modify multi-line comments to follow Documentation/CodingStyle.
    
    Not fixed (false positive):
    ERROR: Macros with multiple statements should be enclosed in a do - while loop
    Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
    9004ac81
via686a.c 31.2 KB