summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2012-10-23 05:27:52 -0700
committerBryan Wu <cooloney@gmail.com>2012-11-26 14:28:49 -0800
commite8941928faf248530c0eff95462e9fee0b1cc8da (patch)
tree76738fb58909fb756074110844051ff152d7eaad
parent75253b3cff98674d6bf98071b7bce78ae6315a9d (diff)
downloadlinux-3.10-e8941928faf248530c0eff95462e9fee0b1cc8da.tar.gz
linux-3.10-e8941928faf248530c0eff95462e9fee0b1cc8da.tar.bz2
linux-3.10-e8941928faf248530c0eff95462e9fee0b1cc8da.zip
leds: ledtrig-gpio: 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/ledtrig-gpio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/leds/ledtrig-gpio.c b/drivers/leds/ledtrig-gpio.c
index ba215dc42f9..72e3ebfc281 100644
--- a/drivers/leds/ledtrig-gpio.c
+++ b/drivers/leds/ledtrig-gpio.c
@@ -110,7 +110,7 @@ static ssize_t gpio_trig_inverted_store(struct device *dev,
unsigned long inverted;
int ret;
- ret = strict_strtoul(buf, 10, &inverted);
+ ret = kstrtoul(buf, 10, &inverted);
if (ret < 0)
return ret;