1. 19 Mar, 2012 40 commits
    • Guenter Roeck's avatar
      hwmon: (w83792d) Fix checkpatch issues · d1743681
      Guenter Roeck authored
      Fixed:
      ERROR: code indent should use tabs where possible
      ERROR: do not use assignment in if condition
      ERROR: space prohibited after that open parenthesis '('
      ERROR: space required after that ',' (ctx:VxV)
      ERROR: space required after that ',' (ctx:WxV)
      ERROR: spaces required around that ':' (ctx:VxE)
      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:VxV)
      ERROR: spaces required around that ':' (ctx:VxV)
      ERROR: spaces required around that '?' (ctx:VxV)
      WARNING: braces {} are not necessary for any arm of this statement
      WARNING: braces {} are not necessary for single statement blocks
      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 '('
      
      Modify multi-line comments to follow Documentation/CodingStyle.
      Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      d1743681
    • Guenter Roeck's avatar
      hwmon: (vt1211) Fix: do not use assignment in if condition · 2185696d
      Guenter Roeck authored
      Fix checkpatch issue:
      ERROR: do not use assignment in if condition
      
      Replace repeated calls to device_create_file() with calls to sysfs_create_group.
      
      Cc: Juerg Haefliger <juergh@gmail.com>
      Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      2185696d
    • 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
    • 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
    • Guenter Roeck's avatar
      hwmon: (pc87360) Fix: do not use assignment in if condition · bce2778d
      Guenter Roeck authored
      Fix checkpatch issue:
      ERROR: do not use assignment in if condition
      
      Replace repeated calls to device_create_file() with calls to sysfs_create_group.
      
      Cc: Jean Delvare <khali@linux-fr.org>
      Cc: Jim Cromie <jim.cromie@gmail.com>
      Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      bce2778d
    • Guenter Roeck's avatar
      hwmon: (pc87360) Fix checkpatch issues · 449a7a07
      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 required after that ',' (ctx:VxV)
      ERROR: spaces required around that ':' (ctx:VxE)
      ERROR: spaces required around that '==' (ctx:VxV)
      WARNING: braces {} are not necessary for single statement blocks
      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
      
      Not or not all fixed (code complexity):
      ERROR: Macros with complex values should be enclosed in parenthesis
      ERROR: do not use assignment in if condition
      
      Cc: Jim Cromie <jim.cromie@gmail.com>
      Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      449a7a07
    • Guenter Roeck's avatar
      hwmon: (max1619): Fix checkpatch issues · 8958dfb7
      Guenter Roeck authored
      Fixed:
      ERROR: do not use assignment in if condition
      ERROR: trailing whitespace
      WARNING: line over 80 characters
      WARNING: please, no spaces at the start of a line
      WARNING: simple_strtol is obsolete, use kstrtol instead
      Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      8958dfb7
    • Guenter Roeck's avatar
      hwmon: (lm85) Fix checkpatch issues · 09770b26
      Guenter Roeck authored
      Fixed:
      ERROR: code indent should use tabs where possible
      ERROR: do not use assignment in if condition
      WARNING: simple_strtol is obsolete, use kstrtol instead
      WARNING: simple_strtoul is obsolete, use kstrtoul instead
      
      Modify multi-line comments to follow Documentation/CodingStyle.
      
      Also: s/#define^I/#define /
      
      Not fixed (false positive):
      ERROR: Macros with multiple statements should be enclosed in a do - while loop
      
      Cc: Jean Delvare <khali@linux-fr.org>
      Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      09770b26
    • Guenter Roeck's avatar
      hwmon: (lm78) Fix checkpatch issues · 9b03079f
      Guenter Roeck authored
      Fixed:
      ERROR: code indent should use tabs where possible
      ERROR: do not use assignment in if condition
      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
      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
      
      Cc: Jean Delvare <khali@linux-fr.org>
      Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      Acked-by: default avatarJean Delvare <khali@linux-fr.org>
      9b03079f
    • Guenter Roeck's avatar
      hwmon: (lm77) Fix checkpatch issues · 02fe2fd9
      Guenter Roeck authored
      Fixed:
      ERROR: code indent should use tabs where possible
      ERROR: do not use assignment in if condition
      ERROR: trailing whitespace
      WARNING: line over 80 characters
      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.
      Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      02fe2fd9
    • Guenter Roeck's avatar
      hwmon: (gl520sm) Fix: do not use assignment in if condition · f445a9af
      Guenter Roeck authored
      Fix checkpatch issue:
      ERROR: do not use assignment in if condition
      
      Replace repeated calls to device_create_file() with calls to sysfs_create_group.
      Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      f445a9af
    • Guenter Roeck's avatar
      hwmon: (gl520sm) Fix checkpatch issues · 43da3d12
      Guenter Roeck authored
      Fixed:
      ERROR: code indent should use tabs where possible
      ERROR: do not use assignment in if condition
      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:VxV)
      ERROR: trailing statements should be on next 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 always fixed (complexity):
      ERROR: do not use assignment in if condition
      Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      43da3d12
    • Guenter Roeck's avatar
      hwmon: (gl518sm) Fix checkpatch issues · 228f8e0c
      Guenter Roeck authored
      Fixed:
      ERROR: do not use assignment in if condition
      ERROR: space required after that ',' (ctx:VxV)
      ERROR: spaces required around that '?' (ctx:VxE)
      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: trailing statements should be on next 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.
      Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      228f8e0c
    • Guenter Roeck's avatar
      hwmon: (dme1737) Fix checkpatch issues · c8de8362
      Guenter Roeck authored
      Fixed:
      WARNING: braces {} are not necessary for any arm of this statement
      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.
      
      Also: s/#define^I/#define /
      
      Not fixed (false positive):
      ERROR: Macros with multiple statements should be enclosed in a do - while loop
      
      Cc: Juerg Haefliger <juergh@gmail.com>
      Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      c8de8362
    • Guenter Roeck's avatar
      hwmon: (asb100): Fix checkpatch issues · 8c103696
      Guenter Roeck authored
      Fixed:
      ERROR: code indent should use tabs where possible
      ERROR: do not use assignment in if condition
      ERROR: space prohibited after that open parenthesis '('
      ERROR: spaces required around that '<' (ctx:VxV)
      ERROR: spaces required around that '==' (ctx:VxV)
      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.
      
      Not fixed (false positive):
      ERROR: Macros with multiple statements should be enclosed in a do - while loop
      
      Cc: Mark M. Hoffman <mhoffman@lightlink.com>
      Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      8c103696
    • Guenter Roeck's avatar
      hwmon: (adm9240) Fix checkpatch issues · c387e4eb
      Guenter Roeck authored
      Fixed:
      ERROR: do not use assignment in if condition
      ERROR: that open brace { should be on the previous line
      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 (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>
      c387e4eb
    • Guenter Roeck's avatar
      hwmon: (adm1026) Fix checkpatch issues · 86aa3e22
      Guenter Roeck authored
      Fixed:
      ERROR: do not use assignment in if condition
      ERROR: space prohibited after that '~' (ctx:WxW)
      ERROR: space required after that ';' (ctx:VxO)
      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)
      WARNING: braces {} are not necessary for any arm of this statement
      WARNING: braces {} are not necessary for single statement blocks
      WARNING: line over 80 characters
      WARNING: simple_strtol is obsolete, use kstrtol instead
      
      Modify multi-line comments to follow Documentation/CodingStyle.
      
      Not fixed:
      ERROR: Macros with multiple statements should be enclosed in a do - while loop
      Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      86aa3e22
    • Guenter Roeck's avatar
      hwmon: (adm1021) Fix checkpatch issues · 21d2a8f1
      Guenter Roeck authored
      Fixed:
      ERROR: do not use assignment in if condition
      WARNING: simple_strtol is obsolete, use kstrtol instead
      WARNING: space prohibited between function name and open parenthesis '('
      
      Modify multi-line comments to follow Documentation/CodingStyle.
      
      Cc: Michael Abbott <michael.abbott@diamond.ac.uk>
      Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      21d2a8f1
    • Guenter Roeck's avatar
      hwmon: (abituguru) Fix checkpatch issues · 1bd385d6
      Guenter Roeck authored
      Fixed:
      ERROR: do not use assignment in if condition
      ERROR: else should follow close brace '}'
      ERROR: switch and case should be at the same indent
      WARNING: simple_strtoul is obsolete, use kstrtoul instead
      
      Modify multi-line comments to follow Documentation/CodingStyle.
      
      Not fixed:
      WARNING: msleep < 20ms can sleep for up to 20ms
      
      Cc: Hans de Goede <hdegoede@redhat.com>
      Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      1bd385d6
    • Guenter Roeck's avatar
      hwmon: (w83627ehf) Fix multi-line comments · 8969e84d
      Guenter Roeck authored
      Cc: Jean Delvare <khali@linux-fr.org>
      Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      8969e84d
    • Guenter Roeck's avatar
      hwmon: (max1111) Fix multi-line comments · 51683ee8
      Guenter Roeck authored
      Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      51683ee8
    • Guenter Roeck's avatar
      hwmon: (ltc4151) Fix multi-line comments · 1b05d22f
      Guenter Roeck authored
      Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      Cc: Per Dalen <per.dalen@appeartv.com>
      1b05d22f
    • Guenter Roeck's avatar
      hwmon: (g760a) Fix multi-line comments · 1b9c491d
      Guenter Roeck authored
      Cc: Herbert Valerio Riedel <hvr@gnu.org>
      Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      1b9c491d
    • Guenter Roeck's avatar
      hwmon: (f71882fg) Fix multi-line comments · 20eaf724
      Guenter Roeck authored
      Cc: Hans de Goede <hdegoede@redhat.com>
      Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      20eaf724
    • Guenter Roeck's avatar
      hwmon: (emc1403) Fix multi-line comments · 4bebced8
      Guenter Roeck authored
      Cc: Kalhan Trisal <kalhan.trisal@intel.com>
      Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      4bebced8
    • Guenter Roeck's avatar
      hwmon: (amc6821) Fix multi-line comments · ca3c7b63
      Guenter Roeck authored
      Cc: T. Mertelj <tomaz.mertelj@guest.arnes.si>
      Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      ca3c7b63
    • Guenter Roeck's avatar
      hwmon: (ads7871) Fix multi-line comments · 10775d18
      Guenter Roeck authored
      Cc: Paul Thomas <pthomas8589@gmail.com>
      Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      10775d18
    • Guenter Roeck's avatar
      hwmon: (ads7828) Fix multi-line comments · d13d6232
      Guenter Roeck authored
      Cc: Steve Hardy <shardy@redhat.com>
      Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      d13d6232
    • Guenter Roeck's avatar
      hwmon: (abituguru3) Fix multi-line comments · 562fca2f
      Guenter Roeck authored
      Cc: Hans de Goede <hdegoede@redhat.com>
      Cc: Alistair John Strachan <alistair@devzero.co.uk>
      Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      562fca2f
    • Guenter Roeck's avatar
      hwmon: (w83791d) Fix checkpatch issues · ec1c3194
      Guenter Roeck authored
      Fixed:
      ERROR: code indent should use tabs where possible
      ERROR: do not use assignment in if condition
      ERROR: space prohibited after that open parenthesis '('
      ERROR: space required after that ',' (ctx:VxV)
      WARNING: braces {} are not necessary for single statement blocks
      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 complex values should be enclosed in parenthesis
      
      Cc: Charles Spirakis <bezaur@gmail.com>
      Cc: Marc Hulsman <m.hulsman@tudelft.nl>
      Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      ec1c3194
    • Guenter Roeck's avatar
      hwmon: (ultra45_env) Fix checkpatch issues · a80b10cc
      Guenter Roeck authored
      Fixed:
      WARNING: line over 80 characters
      WARNING: simple_strtol is obsolete, use kstrtol 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
      
      Cc: David S. Miller <davem@davemloft.net>
      Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      a80b10cc
    • Guenter Roeck's avatar
      hwmon: (thmc50) Fix checkpatch issues · 4d387df7
      Guenter Roeck authored
      Fixed:
      ERROR: code indent should use tabs where possible
      ERROR: do not use assignment in if condition
      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
      
      Cc: Krzysztof Helt <krzysztof.h1@wp.pl>
      Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      4d387df7
    • Guenter Roeck's avatar
      hwmon: (smsc47m1) Fix checkpatch issues · 85a0c0d1
      Guenter Roeck authored
      Fixed:
      ERROR: code indent should use tabs where possible
      ERROR: do not use assignment in if condition
      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: trailing statements should be on next line
      ERROR: trailing whitespace
      WARNING: simple_strtol is obsolete, use kstrtol instead
      WARNING: static const char * array should probably be static const char * const
      
      Modify multi-line comments to follow Documentation/CodingStyle.
      
      Also: s/#define^I/#define /
      
      Not fixed (false positive):
      ERROR: Macros with multiple statements should be enclosed in a do - while loop
      
      Cc: Jean Delvare <khali@linux-fr.org>
      Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      85a0c0d1
    • Guenter Roeck's avatar
      hwmon: (smsc47m1) Fix: do not use assignment in if condition · 7e612685
      Guenter Roeck authored
      Fix checkpatch issue:
      ERROR: do not use assignment in if condition
      
      Replace repeated calls to device_create_file() with calls to sysfs_create_group.
      
      Cc: Jean Delvare <khali@linux-fr.org>
      Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      7e612685
    • Guenter Roeck's avatar
      hwmon: (smsc47m192) Fix checkpatch issues · 7cc3cb66
      Guenter Roeck authored
      Fixed:
      ERROR: code indent should use tabs where possible
      ERROR: do not use assignment in if condition
      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)
      NOTE: whitespace errors detected, you may wish to use scripts/cleanpatch or
      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 (false positive):
      ERROR: Macros with multiple statements should be enclosed in a do - while loop
      
      Cc: Hartmut Rick <linux@rick.claranet.de>
      Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      7cc3cb66
    • 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
    • Guenter Roeck's avatar
      hwmon: (pcf8591) Fix checkpatch issues · 57256088
      Guenter Roeck authored
      Fixed:
      ERROR: do not use assignment in if condition
      ERROR: spaces required around that ':' (ctx:VxV)
      ERROR: spaces required around that '?' (ctx:VxV)
      WARNING: line over 80 characters
      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>
      57256088
    • 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
    • Guenter Roeck's avatar
      hwmon: (lm92) Fix checkpatch issues · a318afd8
      Guenter Roeck authored
      Fixed:
      ERROR: code indent should use tabs where possible
      ERROR: do not use assignment in if condition
      ERROR: spaces required around that '<' (ctx:VxV)
      ERROR: spaces required around that '=' (ctx:VxV)
      ERROR: spaces required around that '*=' (ctx:VxV)
      ERROR: trailing whitespace
      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
      
      Modify multi-line comments to follow Documentation/CodingStyle.
      
      Cc: Jean Delvare <khali@linux-fr.org>
      Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      a318afd8
    • Guenter Roeck's avatar
      hwmon: (lm87) Fix: do not use assignment in if condition · 073f1e6c
      Guenter Roeck authored
      Fix checkpatch issue:
      ERROR: do not use assignment in if condition
      
      Replace repeated calls to device_create_file() with calls to sysfs_create_group.
      
      Cc: Jean Delvare <khali@linux-fr.org>
      Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      Acked-by: default avatarJean Delvare <khali@linux-fr.org>
      073f1e6c