projects
/
deliverable
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
67778e0
)
power_supply: Replace strict_strtol() with kstrtol()
author
Jingoo Han
<jg1.han@samsung.com>
Fri, 19 Jul 2013 07:06:16 +0000
(16:06 +0900)
committer
Anton Vorontsov
<anton@enomsg.org>
Fri, 9 Aug 2013 21:49:49 +0000
(14:49 -0700)
The usage of strict_strtol() is not preferred, because strict_strtol() is
obsolete. Thus, kstrtol() should be used.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Anton Vorontsov <anton@enomsg.org>
drivers/power/power_supply_sysfs.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/power/power_supply_sysfs.c
b/drivers/power/power_supply_sysfs.c
index 29178f78d73cfb79868923bfee7ffbe30b393e1b..44420d1e9094cbbc559341b518fe698a7bd0b4fd 100644
(file)
--- a/
drivers/power/power_supply_sysfs.c
+++ b/
drivers/power/power_supply_sysfs.c
@@
-118,7
+118,7
@@
static ssize_t power_supply_store_property(struct device *dev,
long long_val;
/* TODO: support other types than int */
- ret =
strict_
strtol(buf, 10, &long_val);
+ ret =
k
strtol(buf, 10, &long_val);
if (ret < 0)
return ret;
This page took
0.024961 seconds
and
5
git commands to generate.