aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/leds
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2012-10-23 08:26:56 -0400
committerBryan Wu <cooloney@gmail.com>2012-11-26 17:28:48 -0500
commit75253b3cff98674d6bf98071b7bce78ae6315a9d (patch)
tree8c92d94ab6a1ce22a18061a88ac9e0359c3a43a5 /drivers/leds
parentd3b6492afada275d2e33b81a8a3737c9cb0016a4 (diff)
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,
76 unsigned long invert; 76 unsigned long invert;
77 int ret; 77 int ret;
78 78
79 ret = strict_strtoul(buf, 10, &invert); 79 ret = kstrtoul(buf, 10, &invert);
80 if (ret < 0) 80 if (ret < 0)
81 return ret; 81 return ret;
82 82