staging: wlags49: don't use custom implementation of atoi()
authorAndy Shevchenko <ext-andriy.shevchenko@nokia.com>
Thu, 14 Jan 2010 13:07:23 +0000 (15:07 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 4 Mar 2010 00:42:44 +0000 (16:42 -0800)
commit9f64859208f3a56f33f2e893e11df585768f1705
tree2a9e1e35340b713fde86db211ab1829bb26026cf
parente4c3a24dc5c318e57e5295a54f03eb8ae54d9ffa
staging: wlags49: don't use custom implementation of atoi()

Kernel has its own method called simple_strtoul() to do such things.

Here we are using simple_strtoul(value, NULL, 0) because in original function
the recognized base is 10 or 16 and input data is assumed to be unsigned.

Signed-off-by: Andy Shevchenko <ext-andriy.shevchenko@nokia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/wlags49_h2/wl_main.c
drivers/staging/wlags49_h2/wl_profile.c
drivers/staging/wlags49_h2/wl_util.c
drivers/staging/wlags49_h2/wl_util.h