• Guenter Roeck's avatar
    hwmon: (vt1211) Fix checkpatch issues · b162c033
    Guenter Roeck authored
    Fixed:
    ERROR: do not use assignment in if condition
    ERROR: switch and case should be at the same indent
    ERROR: trailing statements should be on next line
    WARNING: braces {} are not necessary for single statement blocks
    WARNING: simple_strtol is obsolete, use kstrtol instead
    
    Modify multi-line comments to follow Documentation/CodingStyle.
    
    Not fixed (false positive):
    ERROR: Macros with complex values should be enclosed in parenthesis
    
    Not all fixed (code complexity):
    ERROR: do not use assignment in if condition
    
    Cc: Juerg Haefliger <juergh@gmail.com>
    Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
    b162c033
vt1211.c 39 KB