Staging: comedi: kcomedilib: replace deprecated simple_strtoul() with kstrtouint()
authorChase Southwood <chase.southwood@yahoo.com>
Sat, 15 Feb 2014 03:59:40 +0000 (21:59 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 15 Feb 2014 20:42:41 +0000 (12:42 -0800)
commite6bed035ca652c43c897731366ea816ea2c4fbf1
treee62d9524cb05e98d0f06ad043c6f3f2b8ea019e7
parent60800abdc147ba034204408cc4745d66e1ffbb8e
Staging: comedi: kcomedilib: replace deprecated simple_strtoul() with kstrtouint()

Since simple_strtoul() has been deprecated, replace it with kstrtouint().
Also, since return code checking for this new function is enforced, add a
check to ensure that the conversion has succeeded.

Signed-off-by: Chase Southwood <chase.southwood@yahoo.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/kcomedilib/kcomedilib_main.c