projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid
[cascardo/linux.git]
/
drivers
/
mfd
/
aat2870-core.c
diff --git
a/drivers/mfd/aat2870-core.c
b/drivers/mfd/aat2870-core.c
index
dfdb0a2
..
d4f5945
100644
(file)
--- a/
drivers/mfd/aat2870-core.c
+++ b/
drivers/mfd/aat2870-core.c
@@
-312,8
+312,9
@@
static ssize_t aat2870_reg_write_file(struct file *file,
while (*start == ' ')
start++;
- if (strict_strtoul(start, 16, &val))
- return -EINVAL;
+ ret = kstrtoul(start, 16, &val);
+ if (ret)
+ return ret;
ret = aat2870->write(aat2870, (u8)addr, (u8)val);
if (ret)