diff options
Diffstat (limited to 'drivers/input/keyboard/lm8323.c')
-rw-r--r-- | drivers/input/keyboard/lm8323.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/input/keyboard/lm8323.c b/drivers/input/keyboard/lm8323.c index 82d1dc8badd5..21823bfc7911 100644 --- a/drivers/input/keyboard/lm8323.c +++ b/drivers/input/keyboard/lm8323.c | |||
@@ -545,13 +545,12 @@ static ssize_t lm8323_pwm_store_time(struct device *dev, | |||
545 | { | 545 | { |
546 | struct led_classdev *led_cdev = dev_get_drvdata(dev); | 546 | struct led_classdev *led_cdev = dev_get_drvdata(dev); |
547 | struct lm8323_pwm *pwm = cdev_to_pwm(led_cdev); | 547 | struct lm8323_pwm *pwm = cdev_to_pwm(led_cdev); |
548 | int ret; | 548 | int ret, time; |
549 | unsigned long time; | ||
550 | 549 | ||
551 | ret = strict_strtoul(buf, 10, &time); | 550 | ret = kstrtoint(buf, 10, &time); |
552 | /* Numbers only, please. */ | 551 | /* Numbers only, please. */ |
553 | if (ret) | 552 | if (ret) |
554 | return -EINVAL; | 553 | return ret; |
555 | 554 | ||
556 | pwm->fade_time = time; | 555 | pwm->fade_time = time; |
557 | 556 | ||
@@ -613,9 +612,9 @@ static ssize_t lm8323_set_disable(struct device *dev, | |||
613 | { | 612 | { |
614 | struct lm8323_chip *lm = dev_get_drvdata(dev); | 613 | struct lm8323_chip *lm = dev_get_drvdata(dev); |
615 | int ret; | 614 | int ret; |
616 | unsigned long i; | 615 | unsigned int i; |
617 | 616 | ||
618 | ret = strict_strtoul(buf, 10, &i); | 617 | ret = kstrtouint(buf, 10, &i); |
619 | 618 | ||
620 | mutex_lock(&lm->lock); | 619 | mutex_lock(&lm->lock); |
621 | lm->kp_enabled = !i; | 620 | lm->kp_enabled = !i; |