All of lore.kernel.org
 help / color / mirror / Atom feed
From: Luis de Bethencourt <luis@debethencourt.com>
To: linux-kernel@vger.kernel.org
Cc: William Hubbs <w.d.hubbs@gmail.com>,
	Chris Brannon <chris@the-brannons.com>,
	Kirk Reiser <kirk@reisers.ca>,
	Samuel Thibault <samuel.thibault@ens-lyon.org>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Domagoj Trsan <domagoj.trsan@gmail.com>,
	Melike Yurtoglu <aysemelikeyurtoglu@gmail.com>,
	speakup@linux-speakup.org, devel@driverdev.osuosl.org
Subject: [PATCH] staging: speakup: replace simple_strtoul() with kstrtoint()
Date: Tue, 23 Jun 2015 21:47:11 +0100	[thread overview]
Message-ID: <20150623204711.GA18380@turing> (raw)

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


             reply	other threads:[~2015-06-23 20:47 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-23 20:47 Luis de Bethencourt [this message]
2015-06-23 22:53 ` [PATCH] staging: speakup: replace simple_strtoul() with kstrtoint() 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150623204711.GA18380@turing \
    --to=luis@debethencourt.com \
    --cc=aysemelikeyurtoglu@gmail.com \
    --cc=chris@the-brannons.com \
    --cc=devel@driverdev.osuosl.org \
    --cc=domagoj.trsan@gmail.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=kirk@reisers.ca \
    --cc=linux-kernel@vger.kernel.org \
    --cc=samuel.thibault@ens-lyon.org \
    --cc=speakup@linux-speakup.org \
    --cc=w.d.hubbs@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.