mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
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>
This commit is contained in:
parent
0363be8b55
commit
0ebc1c25ca
1 changed files with 4 additions and 1 deletions
|
@ -303,7 +303,10 @@ static ssize_t aat2870_reg_write_file(struct file *file,
|
|||
while (*start == ' ')
|
||||
start++;
|
||||
|
||||
addr = simple_strtoul(start, &start, 16);
|
||||
ret = kstrtoul(start, 16, &addr);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
if (addr >= AAT2870_REG_NUM) {
|
||||
dev_err(aat2870->dev, "Invalid address, 0x%lx\n", addr);
|
||||
return -EINVAL;
|
||||
|
|
Loading…
Reference in a new issue