leds: leds-lp5521: replace strict_strtoul() with kstrtoul()
authorJingoo Han <jg1.han@samsung.com>
Mon, 19 Nov 2012 04:51:20 +0000 (20:51 -0800)
committerBryan 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-lp5521.c

index 2064aefedc0707fd7a6d78e85ded09dd441113a0..362e29e27db994cda6054dc704f348ac81c72804 100644 (file)
@@ -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;