misc: replace strict_strtoul() with kstrtoul()
[linux-2.6-block.git] / drivers / misc / apds9802als.c
index 5b5fd8416b3e8e790ffc11084c9a7320cadd898f..0c6e037153d2231a3ff3859babcd5b8958e3ce7f 100644 (file)
@@ -126,8 +126,9 @@ 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 < 4096)
                val = 1;