misc: replace strict_strtoul() with kstrtoul()
The usage of strict_strtoul() is not preferred, because strict_strtoul() is obsolete. Thus, kstrtoul() should be used. Signed-off-by: Jingoo Han <jg1.han@samsung.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
4cd5773a2a
commit
f7b41276b6
@@ -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;
|
||||
|
Reference in New Issue
Block a user