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

Staging: olpc_dcon.c: obsolete use of strict_stroul

As Dan mentioned, dcon_write() will only write u16 values. The
appropriate parts have been changed. As a result of module_param()
not accepting u16 as a valid data type, ushort is used.
Signed-off-by: default avatarValentin Rothberg <valentinrothberg@googlemail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 88e09a5e
...@@ -34,8 +34,8 @@ ...@@ -34,8 +34,8 @@
/* Module definitions */ /* Module definitions */
static int resumeline = 898; static ushort resumeline = 898;
module_param(resumeline, int, 0444); module_param(resumeline, ushort, 0444);
/* Default off since it doesn't work on DCON ASIC in B-test OLPC board */ /* Default off since it doesn't work on DCON ASIC in B-test OLPC board */
static int useaa = 1; static int useaa = 1;
...@@ -498,10 +498,10 @@ static ssize_t dcon_freeze_store(struct device *dev, ...@@ -498,10 +498,10 @@ static ssize_t dcon_freeze_store(struct device *dev,
static ssize_t dcon_resumeline_store(struct device *dev, static ssize_t dcon_resumeline_store(struct device *dev,
struct device_attribute *attr, const char *buf, size_t count) struct device_attribute *attr, const char *buf, size_t count)
{ {
unsigned long rl; unsigned short rl;
int rc; int rc;
rc = strict_strtoul(buf, 10, &rl); rc = kstrtou16(buf, 10, &rl);
if (rc) if (rc)
return rc; return rc;
......
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