projects
/
platform
/
kernel
/
linux-amlogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
69b44c1
)
leds: leds-lp5523: replace strict_strtoul() with kstrtoul()
author
Jingoo Han
<jg1.han@samsung.com>
Mon, 19 Nov 2012 04:51:47 +0000
(20:51 -0800)
committer
Bryan Wu
<cooloney@gmail.com>
Mon, 26 Nov 2012 22:28:51 +0000
(14:28 -0800)
The usage of strict_strtoul() is not preferred, because
strict_strtoul() is obsolete. Thus, kstrtoul() should be
used.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Bryan Wu <cooloney@gmail.com>
drivers/leds/leds-lp5523.c
patch
|
blob
|
history
diff --git
a/drivers/leds/leds-lp5523.c
b/drivers/leds/leds-lp5523.c
index
4ddf7b4
..
59ec383
100644
(file)
--- a/
drivers/leds/leds-lp5523.c
+++ b/
drivers/leds/leds-lp5523.c
@@
-710,7
+710,7
@@
static ssize_t store_current(struct device *dev,
ssize_t ret;
unsigned long curr;
- if (
strict_
strtoul(buf, 0, &curr))
+ if (
k
strtoul(buf, 0, &curr))
return -EINVAL;
if (curr > led->max_current)