summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2012-11-19 05:51:20 +0100
committerBryan Wu <cooloney@gmail.com>2012-11-26 23:28:51 +0100
commit69b44c1630b7f618c9dec217d5497744224d90b8 (patch)
tree09484d0a2432bd033adb616c7a3cccfc6dab95e1
parentled: Add dependency on CONFIG_LEDS_TRIGGERS to led_trigger_rename_static() (diff)
downloadlinux-69b44c1630b7f618c9dec217d5497744224d90b8.tar.xz
linux-69b44c1630b7f618c9dec217d5497744224d90b8.zip
leds: leds-lp5521: replace strict_strtoul() with kstrtoul()
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>
-rw-r--r--drivers/leds/leds-lp5521.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/leds/leds-lp5521.c b/drivers/leds/leds-lp5521.c
index 2064aefedc07..362e29e27db9 100644
--- a/drivers/leds/leds-lp5521.c
+++ b/drivers/leds/leds-lp5521.c
@@ -616,7 +616,7 @@ static ssize_t store_led_pattern(struct device *dev,
unsigned long val;
int ret;
- ret = strict_strtoul(buf, 16, &val);
+ ret = kstrtoul(buf, 16, &val);
if (ret)
return ret;