hwmon: (lm75) fix checkpatch warning

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 <[email protected]>
Signed-off-by: Guenter Roeck <[email protected]>
This commit is contained in:
Frans Meulenbroeks 2012-01-03 12:02:41 +01:00 • committed by Guenter Roeck
commit 24edc0a71b

View 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;