projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mfd: arizona: Add MICVDD to mapped regulators for wm8997
[deliverable/linux.git]
/
drivers
/
mfd
/
aat2870-core.c
diff --git
a/drivers/mfd/aat2870-core.c
b/drivers/mfd/aat2870-core.c
index 14d9542a4eed8d1408c556c781795e0c24869a9c..4e6e03d63e12bab9e228f5bbbdbc72a4a1a0f6da 100644
(file)
--- a/
drivers/mfd/aat2870-core.c
+++ b/
drivers/mfd/aat2870-core.c
@@
-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;
This page took
0.053115 seconds
and
5
git commands to generate.