Skip to content

Commit

Permalink
Staging: olpc_dcon.c: obsolete use of strict_strtoul
Browse files Browse the repository at this point in the history
As noted by the checkpatch script, strict_strtoul is obsolete. Unsigned
longs are used, so it seems good to take kstrtoul.

Signed-off-by: Valentin Rothberg <valentinrothberg@googlemail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Valentin Rothberg authored and Greg Kroah-Hartman committed Dec 8, 2011
1 parent 463ac7f commit 88e09a5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/staging/olpc_dcon/olpc_dcon.c
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ static ssize_t dcon_mono_store(struct device *dev,
unsigned long enable_mono;
int rc;

rc = strict_strtoul(buf, 10, &enable_mono);
rc = kstrtoul(buf, 10, &enable_mono);
if (rc)
return rc;

Expand All @@ -472,7 +472,7 @@ static ssize_t dcon_freeze_store(struct device *dev,
unsigned long output;
int ret;

ret = strict_strtoul(buf, 10, &output);
ret = kstrtoul(buf, 10, &output);
if (ret)
return ret;

Expand Down Expand Up @@ -517,7 +517,7 @@ static ssize_t dcon_sleep_store(struct device *dev,
unsigned long output;
int ret;

ret = strict_strtoul(buf, 10, &output);
ret = kstrtoul(buf, 10, &output);
if (ret)
return ret;

Expand Down

0 comments on commit 88e09a5

Please sign in to comment.