[PATCH] staging: speakup: replace simple_strtoul() with kstrtoint()

Luis de Bethencourt
2015-06-23T20:47:22Z

Use the newer and nicer kstrtoint(), because simple_strtoul() is now obsolete.

Signed-off-by: Luis de Bethencourt <luis@debethencourt.com>
---
drivers/staging/speakup/varhandlers.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/speakup/varhandlers.c b/drivers/staging/speakup/varhandlers.c
index 1b0d1c0..131da42 100644
--- a/drivers/staging/speakup/varhandlers.c
+++ b/drivers/staging/speakup/varhandlers.c
@@ -324,7 +324,7 @@ char *spk_s2uchar(char *start, char *dest)
{
int val = 0;

- val = simple_strtoul(skip_spaces(start), &start, 10);
+ kstrtoint(skip_spaces(start), 10, &val);
if (*start == ',')
start++;
*dest = (u_char)val;
--
2.1.0