diff options
author | Frans Meulenbroeks <fransmeulenbroeks@gmail.com> | 2012-01-03 06:02:41 -0500 |
---|---|---|
committer | Guenter Roeck <guenter.roeck@ericsson.com> | 2012-01-05 11:19:33 -0500 |
commit | 24edc0a71badc13a9574b060e6a22e78339ac7a4 (patch) | |
tree | 0ab30c8cdb9f373a11140356c410254cb6fce54b /drivers | |
parent | 1f962f363b762887d8f9057598b6acacf9e80234 (diff) |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/hwmon/lm75.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/lm75.c b/drivers/hwmon/lm75.c index 903f22904bf4..b3311b1d3d92 100644 --- a/drivers/hwmon/lm75.c +++ b/drivers/hwmon/lm75.c | |||
@@ -111,7 +111,7 @@ static ssize_t set_temp(struct device *dev, struct device_attribute *da, | |||
111 | long temp; | 111 | long temp; |
112 | int error; | 112 | int error; |
113 | 113 | ||
114 | error = strict_strtol(buf, 10, &temp); | 114 | error = kstrtol(buf, 10, &temp); |
115 | if (error) | 115 | if (error) |
116 | return error; | 116 | return error; |
117 | 117 | ||