leds: simple_strtoul() cleanup
authorShuah Khan <shuahkhan@gmail.com>
Tue, 29 May 2012 22:07:26 +0000 (15:07 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 29 May 2012 23:22:31 +0000 (16:22 -0700)
commit872b86be0a285b11b03614456b67fdaf78e86f3d
tree1bd709cf5e71997b290e3eaf9a4aa8dd16dc49a9
parent5ba736311bf6fea25c97e868b7de6d3de8800aba
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>
Cc: Bryan Wu <bryan.wu@canonical.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/leds/led-class.c
drivers/leds/ledtrig-timer.c