Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933599AbbFWUrW (ORCPT ); Tue, 23 Jun 2015 16:47:22 -0400 Received: from mail-wi0-f182.google.com ([209.85.212.182]:35751 "EHLO mail-wi0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932529AbbFWUrO (ORCPT ); Tue, 23 Jun 2015 16:47:14 -0400 Date: Tue, 23 Jun 2015 21:47:11 +0100 From: Luis de Bethencourt To: linux-kernel@vger.kernel.org Cc: William Hubbs , Chris Brannon , Kirk Reiser , Samuel Thibault , Greg Kroah-Hartman , Domagoj Trsan , Melike Yurtoglu , speakup@linux-speakup.org, devel@driverdev.osuosl.org Subject: [PATCH] staging: speakup: replace simple_strtoul() with kstrtoint() Message-ID: <20150623204711.GA18380@turing> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 941 Lines: 28 Use the newer and nicer kstrtoint(), because simple_strtoul() is now obsolete. Signed-off-by: Luis de Bethencourt --- 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/