mirror of
https://github.com/torvalds/linux.git
synced 2024-11-12 15:11:50 +00:00
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 <fransmeulenbroeks@gmail.com> Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
This commit is contained in:
parent
1f962f363b
commit
24edc0a71b
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user