Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mfd: aat2870-core: Stop using obsolte simple_strtoul()

Soothes checkpatch warning:

WARNING: simple_strtoul is obsolete, use kstrtoul instead
#306: FILE: drivers/mfd/aat2870-core.c:306:
+ addr = simple_strtoul(start, &start, 16);

Signed-off-by: Lee Jones <lee.jones@linaro.org>

Lee Jones 0ebc1c25 0363be8b

+4 -1
+4 -1
drivers/mfd/aat2870-core.c
··· 303 303 while (*start == ' ') 304 304 start++; 305 305 306 - addr = simple_strtoul(start, &start, 16); 306 + ret = kstrtoul(start, 16, &addr); 307 + if (ret) 308 + return ret; 309 + 307 310 if (addr >= AAT2870_REG_NUM) { 308 311 dev_err(aat2870->dev, "Invalid address, 0x%lx\n", addr); 309 312 return -EINVAL;