hwmon: (lm75) fix checkpatch warning
authorFrans Meulenbroeks <fransmeulenbroeks@gmail.com>
Tue, 3 Jan 2012 11:02:41 +0000 (12:02 +0100)
committerGuenter Roeck <guenter.roeck@ericsson.com>
Thu, 5 Jan 2012 16:19:33 +0000 (08:19 -0800)
Fixed this:

WARNING: strict_strtol is obsolete, use kstrtol instead
+   error = strict_strtol(buf, 10, &temp);

by replacing strict_strtol with kstrtol.

Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
drivers/hwmon/lm75.c

index 903f22904bf4317778b346deaf8d1574d1d9d238..b3311b1d3d9237a5e59cf41e5f12fcac3d2d107b 100644 (file)
@@ -111,7 +111,7 @@ static ssize_t set_temp(struct device *dev, struct device_attribute *da,
        long temp;
        int error;
 
-       error = strict_strtol(buf, 10, &temp);
+       error = kstrtol(buf, 10, &temp);
        if (error)
                return error;