leds: leds-ns2: replace strict_strtoul() with kstrtoul()
authorJingoo Han <jg1.han@samsung.com>
Tue, 23 Oct 2012 12:25:35 +0000 (05:25 -0700)
committerBryan Wu <cooloney@gmail.com>
Mon, 26 Nov 2012 22:28:48 +0000 (14:28 -0800)
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>
drivers/leds/leds-ns2.c

index ae8f93b3364ebe25a241cfa3f20faab402fe54a4..5df2a250a13e50718eac3cf6d4abce00ff8dff84 100644 (file)
@@ -149,7 +149,7 @@ static ssize_t ns2_led_sata_store(struct device *dev,
        unsigned long enable;
        enum ns2_led_modes mode;
 
-       ret = strict_strtoul(buff, 10, &enable);
+       ret = kstrtoul(buff, 10, &enable);
        if (ret < 0)
                return ret;
 
This page took 0.025632 seconds and 5 git commands to generate.