|
@@ -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;
|
|
|
|
|
|
/*
|