projects
/
profile
/
ivi
/
kernel-x86-ivi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f962f3
)
hwmon: (lm75) fix checkpatch warning
author
Frans Meulenbroeks
<fransmeulenbroeks@gmail.com>
Tue, 3 Jan 2012 11:02:41 +0000
(12:02 +0100)
committer
Guenter 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
patch
|
blob
|
history
diff --git
a/drivers/hwmon/lm75.c
b/drivers/hwmon/lm75.c
index
903f229
..
b3311b1
100644
(file)
--- 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,
long temp;
int error;
- error =
strict_
strtol(buf, 10, &temp);
+ error =
k
strtol(buf, 10, &temp);
if (error)
return error;