leds: ledtrig-backlight: replace strict_strtoul() with kstrtoul()
authorJingoo Han <jg1.han@samsung.com>
Tue, 23 Oct 2012 12:26:56 +0000 (05:26 -0700)
committerBryan Wu <cooloney@gmail.com>
Mon, 26 Nov 2012 22:28:48 +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/ledtrig-backlight.c

index b941685..c74aff1 100644 (file)
@@ -76,7 +76,7 @@ static ssize_t bl_trig_invert_store(struct device *dev,
        unsigned long invert;
        int ret;
 
-       ret = strict_strtoul(buf, 10, &invert);
+       ret = kstrtoul(buf, 10, &invert);
        if (ret < 0)
                return ret;