projects
/
platform
/
adaptation
/
renesas_rcar
/
renesas_kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b3789a0
)
hwmon: (pmbus) Replace strict_strtol with kstrtol
author
Guenter Roeck
<linux@roeck-us.net>
Mon, 16 Jan 2012 18:14:54 +0000
(10:14 -0800)
committer
Guenter Roeck
<guenter.roeck@ericsson.com>
Mon, 19 Mar 2012 01:26:43 +0000
(18:26 -0700)
strict_strtol is deprecated and results in a checkpatch warning.
Replace it with kstrtol.
Acked-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/pmbus/pmbus_core.c
patch
|
blob
|
history
diff --git
a/drivers/hwmon/pmbus/pmbus_core.c
b/drivers/hwmon/pmbus/pmbus_core.c
index
d89b339
..
f571388
100644
(file)
--- a/
drivers/hwmon/pmbus/pmbus_core.c
+++ b/
drivers/hwmon/pmbus/pmbus_core.c
@@
-782,7
+782,7
@@
static ssize_t pmbus_set_sensor(struct device *dev,
int ret;
u16 regval;
- if (
strict_
strtol(buf, 10, &val) < 0)
+ if (
k
strtol(buf, 10, &val) < 0)
return -EINVAL;
mutex_lock(&data->update_lock);