public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] staging: speakup: replace simple_strtoul() with kstrtoint()
@ 2015-06-23 20:47 Luis de Bethencourt
  2015-06-23 22:53 ` Dan Carpenter
  0 siblings, 1 reply; 7+ messages in thread
From: Luis de Bethencourt @ 2015-06-23 20:47 UTC (permalink / raw)
  To: linux-kernel
  Cc: William Hubbs, Chris Brannon, Kirk Reiser, Samuel Thibault,
	Greg Kroah-Hartman, Domagoj Trsan, Melike Yurtoglu, speakup,
	devel

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


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-06-25  8:20 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-23 20:47 [PATCH] staging: speakup: replace simple_strtoul() with kstrtoint() Luis de Bethencourt
2015-06-23 22:53 ` Dan Carpenter
2015-06-23 23:15   ` Luis de Bethencourt
2015-06-24  5:23     ` Sudip Mukherjee
2015-06-24 10:19       ` Luis de Bethencourt
2015-06-24 17:46         ` Luis de Bethencourt
2015-06-25  8:19           ` Dan Carpenter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox