aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/leds
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2012-10-23 08:27:52 -0400
committerBryan Wu <cooloney@gmail.com>2012-11-26 17:28:49 -0500
commite8941928faf248530c0eff95462e9fee0b1cc8da (patch)
tree76738fb58909fb756074110844051ff152d7eaad /drivers/leds
parent75253b3cff98674d6bf98071b7bce78ae6315a9d (diff)
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>
Diffstat (limited to 'drivers/leds')
-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 ba215dc42f98..72e3ebfc281f 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,
110 unsigned long inverted; 110 unsigned long inverted;
111 int ret; 111 int ret;
112 112
113 ret = strict_strtoul(buf, 10, &inverted); 113 ret = kstrtoul(buf, 10, &inverted);
114 if (ret < 0) 114 if (ret < 0)
115 return ret; 115 return ret;
116 116