[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20150623204711.GA18380@turing>
Date: Tue, 23 Jun 2015 21:47:11 +0100
From: Luis de Bethencourt <luis@...ethencourt.com>
To: linux-kernel@...r.kernel.org
Cc: William Hubbs <w.d.hubbs@...il.com>,
Chris Brannon <chris@...-brannons.com>,
Kirk Reiser <kirk@...sers.ca>,
Samuel Thibault <samuel.thibault@...-lyon.org>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Domagoj Trsan <domagoj.trsan@...il.com>,
Melike Yurtoglu <aysemelikeyurtoglu@...il.com>,
speakup@...ux-speakup.org, devel@...verdev.osuosl.org
Subject: [PATCH] staging: speakup: replace simple_strtoul() with kstrtoint()
Use the newer and nicer kstrtoint(), because simple_strtoul() is now obsolete.
Signed-off-by: Luis de Bethencourt <luis@...ethencourt.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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists