You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
HID: 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> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
This commit is contained in:
@@ -237,7 +237,7 @@ static ssize_t set_min_width(struct device *dev,
|
||||
|
||||
unsigned long val;
|
||||
|
||||
if (strict_strtoul(buf, 0, &val))
|
||||
if (kstrtoul(buf, 0, &val))
|
||||
return -EINVAL;
|
||||
|
||||
if (val > nd->sensor_physical_width)
|
||||
@@ -272,7 +272,7 @@ static ssize_t set_min_height(struct device *dev,
|
||||
|
||||
unsigned long val;
|
||||
|
||||
if (strict_strtoul(buf, 0, &val))
|
||||
if (kstrtoul(buf, 0, &val))
|
||||
return -EINVAL;
|
||||
|
||||
if (val > nd->sensor_physical_height)
|
||||
@@ -306,7 +306,7 @@ static ssize_t set_activate_slack(struct device *dev,
|
||||
|
||||
unsigned long val;
|
||||
|
||||
if (strict_strtoul(buf, 0, &val))
|
||||
if (kstrtoul(buf, 0, &val))
|
||||
return -EINVAL;
|
||||
|
||||
if (val > 0x7f)
|
||||
@@ -341,7 +341,7 @@ static ssize_t set_activation_width(struct device *dev,
|
||||
|
||||
unsigned long val;
|
||||
|
||||
if (strict_strtoul(buf, 0, &val))
|
||||
if (kstrtoul(buf, 0, &val))
|
||||
return -EINVAL;
|
||||
|
||||
if (val > nd->sensor_physical_width)
|
||||
@@ -377,7 +377,7 @@ static ssize_t set_activation_height(struct device *dev,
|
||||
|
||||
unsigned long val;
|
||||
|
||||
if (strict_strtoul(buf, 0, &val))
|
||||
if (kstrtoul(buf, 0, &val))
|
||||
return -EINVAL;
|
||||
|
||||
if (val > nd->sensor_physical_height)
|
||||
@@ -411,7 +411,7 @@ static ssize_t set_deactivate_slack(struct device *dev,
|
||||
|
||||
unsigned long val;
|
||||
|
||||
if (strict_strtoul(buf, 0, &val))
|
||||
if (kstrtoul(buf, 0, &val))
|
||||
return -EINVAL;
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user