Commit 0db7fd96 authored by Jingoo Han's avatar Jingoo Han Committed by Matthew Garrett

platform: replace strict_strto*() with kstrto*()

The usage of strict_strtoul() and strict_strtol() is not preferred,
because strict_strtoul() and strict_strtol() are obsolete. Thus,
kstrtoul() and kstrtol() should be used.
Signed-off-by: default avatarJingoo Han <jg1.han@samsung.com>
Signed-off-by: default avatarMatthew Garrett <matthew.garrett@nebula.com>
parent 2ff1af70
...@@ -590,7 +590,7 @@ static ssize_t cmpc_accel_sensitivity_store(struct device *dev, ...@@ -590,7 +590,7 @@ static ssize_t cmpc_accel_sensitivity_store(struct device *dev,
inputdev = dev_get_drvdata(&acpi->dev); inputdev = dev_get_drvdata(&acpi->dev);
accel = dev_get_drvdata(&inputdev->dev); accel = dev_get_drvdata(&inputdev->dev);
r = strict_strtoul(buf, 0, &sensitivity); r = kstrtoul(buf, 0, &sensitivity);
if (r) if (r)
return r; return r;
......
...@@ -425,7 +425,8 @@ static ssize_t pwm_enable_store(struct device *dev, ...@@ -425,7 +425,8 @@ static ssize_t pwm_enable_store(struct device *dev,
struct compal_data *data = dev_get_drvdata(dev); struct compal_data *data = dev_get_drvdata(dev);
long val; long val;
int err; int err;
err = strict_strtol(buf, 10, &val);
err = kstrtol(buf, 10, &val);
if (err) if (err)
return err; return err;
if (val < 0) if (val < 0)
...@@ -463,7 +464,8 @@ static ssize_t pwm_store(struct device *dev, struct device_attribute *attr, ...@@ -463,7 +464,8 @@ static ssize_t pwm_store(struct device *dev, struct device_attribute *attr,
struct compal_data *data = dev_get_drvdata(dev); struct compal_data *data = dev_get_drvdata(dev);
long val; long val;
int err; int err;
err = strict_strtol(buf, 10, &val);
err = kstrtol(buf, 10, &val);
if (err) if (err)
return err; return err;
if (val < 0 || val > 255) if (val < 0 || val > 255)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment