Re: [PATCH] avr32: replace simple_strtoul() with kstrtoul()

2014-03-30 Thread Hans-Christian Egtvedt
Around Wed 19 Mar 2014 12:52:35 +0300 or thereabout, Alexey Dobriyan wrote: >> - val = simple_strtoul(buf, &endp, 0); >> - if (endp == buf || val > 0x3f) >> - return -EINVAL; >> + ret = kstrtoul(buf, 0, &val); >> + if (ret) >> + return ret; >> val = (val << 12) | (sysreg_read(PCCR) & 0xfffc0fff);

Re: [PATCH] avr32: replace simple_strtoul() with kstrtoul()

2014-03-19 Thread Alexey Dobriyan
> - val = simple_strtoul(buf, &endp, 0); > - if (endp == buf || val > 0x3f) > - return -EINVAL; > + ret = kstrtoul(buf, 0, &val); > + if (ret) > + return ret; > val = (val << 12) | (sysreg_read(PCCR) & 0xfffc0fff); you removed 0x3f check this conversion is not trivial as it seems -- To unsubscr

[PATCH] avr32: replace simple_strtoul() with kstrtoul()

2014-03-18 Thread Ramkumar Ramachandra
simple_strtoul() is marked for obsoletion; use the newer and more pleasant kstrtoul() in its place. Cc: Haavard Skinnemoen Cc: Hans-Christian Egtvedt Signed-off-by: Ramkumar Ramachandra --- arch/avr32/kernel/cpu.c | 48 1 file changed, 24 insert