]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb081a8b08f25daee0e7083c8d8906a31284e4a3d
tree1bd709cf5e71997b290e3eaf9a4aa8dd16dc49a9
parentac1d8074da14a8cb51a716d86db92447b4fe36e7
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