--- zzzz-none-000/linux-3.10.107/drivers/misc/apds9802als.c 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/drivers/misc/apds9802als.c 2021-02-04 17:41:59.000000000 +0000 @@ -22,7 +22,6 @@ */ #include -#include #include #include #include @@ -126,8 +125,9 @@ 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 < 4096) val = 1;