From: Jingoo Han Date: Mon, 19 Nov 2012 04:51:20 +0000 (-0800) Subject: leds: leds-lp5521: replace strict_strtoul() with kstrtoul() X-Git-Tag: firefly_0821_release~3680^2~1438^2~23 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=69b44c1630b7f618c9dec217d5497744224d90b8;p=firefly-linux-kernel-4.4.55.git 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 Signed-off-by: Bryan Wu --- 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;