]> git.baikalelectronics.ru Git - kernel.git/commit
video: bfin_adv7393fb: Convert to kstrtouint_from_user
authorEmil Goode <emilgoode@gmail.com>
Tue, 29 May 2012 16:57:00 +0000 (18:57 +0200)
committerFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
Tue, 5 Jun 2012 21:47:26 +0000 (21:47 +0000)
commit130621dc18ec3b9d27b1eb686ae1adb941277e37
treeb71a1b8006c67ed7051bdb559c031cebe20303ad
parentcf47d0ae58a58563d5356335ccb46b466390d9d9
video: bfin_adv7393fb: Convert to kstrtouint_from_user

This patch removes a call to the deprecated simple_strtoul function
and simplifies the code by replacing two function calls with one
call to kstrtouint_from_user.

-Simplify the adv7393_write_proc function by replacing the
 simple_strtoul and copy_from_user calls with one call
 to kstrtouint_from_user.

-Change the count parameter from unsigned long to size_t as
 this is the type that the kstrtouint_from_user function expects.
 (size_t is what will be passed to the adv7393_write_proc function
 by the proc write handler function proc_file_write anyway)

Signed-off-by: Emil Goode <emilgoode@gmail.com>
Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
drivers/video/bfin_adv7393fb.c