]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
leds: simple_strtoul() cleanup
authorShuah Khan <shuahkhan@gmail.com>
Wed, 25 Apr 2012 01:04:30 +0000 (11:04 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 30 Apr 2012 05:17:32 +0000 (15:17 +1000)
commit9f54eabe3b1f09e87d55cc8f9f5190b9f60b8fcd
treea4aad2b042de49c075b8ce4363efc4a23042d5c7
parentcc7ef3509250fd5453be3918a196b3786e9ae793
leds: simple_strtoul() cleanup

led-class.c and ledtrig-timer.c still use simple_strtoul().  Change them
to use kstrtoul() instead of obsolete simple_strtoul().

Also fix the existing int ret declaration to be ssize_t to match the
return type for _store functions in ledtrig-timer.c.

Signed-off-by: Shuah Khan <shuahkhan@gmail.com>
Cc: Joe Perches <joe@perches.com>
Cc: Richard Purdie <rpurdie@rpsys.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/leds/led-class.c
drivers/leds/ledtrig-timer.c