projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mm: concentrate modification of totalram_pages into the mm core
[firefly-linux-kernel-4.4.55.git]
/
drivers
/
misc
/
isl29020.c
diff --git
a/drivers/misc/isl29020.c
b/drivers/misc/isl29020.c
index 0aa08c746463dc4ca3645fbfb96cbcb65b6275d2..b7f84dacf822f40641858a329175235e2bfe9546 100644
(file)
--- a/
drivers/misc/isl29020.c
+++ b/
drivers/misc/isl29020.c
@@
-90,8
+90,10
@@
static ssize_t als_sensing_range_store(struct device *dev,
int ret_val;
unsigned long val;
- if (strict_strtoul(buf, 10, &val))
- return -EINVAL;
+ ret_val = kstrtoul(buf, 10, &val);
+ if (ret_val)
+ return ret_val;
+
if (val < 1 || val > 64000)
return -EINVAL;