Commit 88e09a5e authored by Valentin Rothberg's avatar Valentin Rothberg Committed by Greg Kroah-Hartman

Staging: olpc_dcon.c: obsolete use of strict_strtoul

As noted by the checkpatch script, strict_strtoul is obsolete. Unsigned
longs are used, so it seems good to take kstrtoul.
Signed-off-by: default avatarValentin Rothberg <valentinrothberg@googlemail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 463ac7f7
...@@ -456,7 +456,7 @@ static ssize_t dcon_mono_store(struct device *dev, ...@@ -456,7 +456,7 @@ static ssize_t dcon_mono_store(struct device *dev,
unsigned long enable_mono; unsigned long enable_mono;
int rc; int rc;
rc = strict_strtoul(buf, 10, &enable_mono); rc = kstrtoul(buf, 10, &enable_mono);
if (rc) if (rc)
return rc; return rc;
...@@ -472,7 +472,7 @@ static ssize_t dcon_freeze_store(struct device *dev, ...@@ -472,7 +472,7 @@ static ssize_t dcon_freeze_store(struct device *dev,
unsigned long output; unsigned long output;
int ret; int ret;
ret = strict_strtoul(buf, 10, &output); ret = kstrtoul(buf, 10, &output);
if (ret) if (ret)
return ret; return ret;
...@@ -517,7 +517,7 @@ static ssize_t dcon_sleep_store(struct device *dev, ...@@ -517,7 +517,7 @@ static ssize_t dcon_sleep_store(struct device *dev,
unsigned long output; unsigned long output;
int ret; int ret;
ret = strict_strtoul(buf, 10, &output); ret = kstrtoul(buf, 10, &output);
if (ret) if (ret)
return ret; return ret;
......
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