summaryrefslogtreecommitdiffstats
path: root/drivers/leds
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2012-10-23 14:26:56 +0200
committerBryan Wu <cooloney@gmail.com>2012-11-26 23:28:48 +0100
commit75253b3cff98674d6bf98071b7bce78ae6315a9d (patch)
tree8c92d94ab6a1ce22a18061a88ac9e0359c3a43a5 /drivers/leds
parentleds: leds-ss4200: replace strict_strtoul() with kstrtoul() (diff)
downloadlinux-75253b3cff98674d6bf98071b7bce78ae6315a9d.tar.xz
linux-75253b3cff98674d6bf98071b7bce78ae6315a9d.zip
leds: ledtrig-backlight: 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-backlight.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/leds/ledtrig-backlight.c b/drivers/leds/ledtrig-backlight.c
index b941685f2227..c74aff1fe70b 100644
--- a/drivers/leds/ledtrig-backlight.c
+++ b/drivers/leds/ledtrig-backlight.c
@@ -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;