[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20140401070856.GA22185@samfundet.no>
Date: Tue, 1 Apr 2014 09:08:56 +0200
From: Hans-Christian Egtvedt <egtvedt@...fundet.no>
To: Ramkumar Ramachandra <artagnon@...il.com>
Cc: LKML <linux-kernel@...r.kernel.org>,
Alexey Dobriyan <adobriyan@...il.com>,
Haavard Skinnemoen <hskinnemoen@...il.com>
Subject: Re: [PATCH v2] avr32: replace simple_strtoul() with kstrtoul()
Around Mon 31 Mar 2014 20:42:42 -0400 or thereabout, Ramkumar Ramachandra wrote:
> simple_strtoul() is marked for obsoletion; use the newer and more
> pleasant kstrtoul() in its place.
>
> Cc: Alexey Dobriyan <adobriyan@...il.com>
> Cc: Haavard Skinnemoen <hskinnemoen@...il.com>
> Cc: Hans-Christian Egtvedt <egtvedt@...fundet.no>
> Signed-off-by: Ramkumar Ramachandra <artagnon@...il.com>
> ---
> arch/avr32/kernel/cpu.c | 48 ++++++++++++++++++++++++++----------------------
> 1 file changed, 26 insertions(+), 22 deletions(-)
>
> diff --git a/arch/avr32/kernel/cpu.c b/arch/avr32/kernel/cpu.c
<snipp diff>
> @@ -61,11 +63,11 @@ static ssize_t store_pc0count(struct device *dev,
> const char *buf, size_t count)
> {
> unsigned long val;
> - char *endp;
> + int ret;
>
> - val = simple_strtoul(buf, &endp, 0);
> - if (endp == buf)
> - return -EINVAL;
> + ret = kstroul(buf, 0, &val);
I fixed this typo to kstrtoul.
<snipp diff>
--
mvh
Hans-Christian Egtvedt
--
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