Skip to content

Commit c542341

Browse files
Valentin Rothberggregkh
authored andcommitted
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: Valentin Rothberg <valentinrothberg@googlemail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
1 parent 88e09a5 commit c542341

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎drivers/staging/olpc_dcon/olpc_dcon.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434

3535
/* Module definitions */
3636

37-
static int resumeline = 898;
38-
module_param(resumeline, int, 0444);
37+
static ushort resumeline = 898;
38+
module_param(resumeline, ushort, 0444);
3939

4040
/* Default off since it doesn't work on DCON ASIC in B-test OLPC board */
4141
static int useaa = 1;
@@ -498,10 +498,10 @@ static ssize_t dcon_freeze_store(struct device *dev,
498498
static ssize_t dcon_resumeline_store(struct device *dev,
499499
struct device_attribute *attr, const char *buf, size_t count)
500500
{
501-
unsigned long rl;
501+
unsigned short rl;
502502
int rc;
503503

504-
rc = strict_strtoul(buf, 10, &rl);
504+
rc = kstrtou16(buf, 10, &rl);
505505
if (rc)
506506
return rc;
507507

0 commit comments

Comments
 (0)