• Guenter Roeck's avatar
    hwmon: (lm93) Fix checkpatch issues · 2804a4cf
    Guenter Roeck authored
    Fixed:
    ERROR: code indent should use tabs where possible
    ERROR: do not use assignment in if condition
    ERROR: else should follow close brace '}'
    ERROR: space prohibited after that open 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: spaces required around that '=' (ctx:VxV)
    ERROR: spaces required around that ':' (ctx:VxW)
    ERROR: trailing statements should be on next line
    WARNING: braces {} are not necessary for any arm of this statement
    WARNING: do not add new typedefs
    WARNING: please, no space before tabs
    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 (unknown impact):
    WARNING: msleep < 20ms can sleep for up to 20ms
    
    Cc: Mark M. Hoffman <mhoffman@lightlink.com>
    Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
    2804a4cf
lm93.c 84.4 KB