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

index 4ddf7b445a83d96c8b545696f2fe48d795224e7d..59ec383900de2e403bdd8c261fc7ccdba4933255 100644 (file)
@@ -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 (kstrtoul(buf, 0, &curr))
                return -EINVAL;
 
        if (curr > led->max_current)