• Guenter Roeck's avatar
    hwmon: (sis5595) Fix checkpatch issues · 8fda79ec
    Guenter Roeck authored
    Fixed:
    ERROR: do not use assignment in if condition
    ERROR: space prohibited after that open parenthesis '('
    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: trailing statements should be on next line
    ERROR: trailing whitespace
    ERROR: Macros with multiple statements should be enclosed in a do - while loop
    WARNING: line over 80 characters
    WARNING: please, no space before tabs
    WARNING: please, no spaces at the start of a line
    WARNING: simple_strtol is obsolete, use kstrtol instead
    WARNING: simple_strtoul is obsolete, use kstrtoul instead
    
    Modify multi-line comments to follow Documentation/CodingStyle.
    
    Cc: Aurelien Jarno <aurelien@aurel32.net>
    Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
    8fda79ec
sis5595.c 25.5 KB