Skip to content

Commit

Permalink
hwmon: (lm75) fix checkpatch warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Frans Meulenbroeks authored and Guenter Roeck committed Jan 5, 2012
1 parent 1f962f3 commit 24edc0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/hwmon/lm75.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 24edc0a

Please sign in to comment.