]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/input/keyboard/lm8323.c
Input: wacom - add missing LEDS_CLASS to Kconfig
[karo-tx-linux.git] / drivers / input / keyboard / lm8323.c
index 82d1dc8badd5472df8ca2cfd6d90c82a06076be7..21823bfc7911b5284426e17568f25a82b56ad1de 100644 (file)
@@ -545,13 +545,12 @@ static ssize_t lm8323_pwm_store_time(struct device *dev,
 {
        struct led_classdev *led_cdev = dev_get_drvdata(dev);
        struct lm8323_pwm *pwm = cdev_to_pwm(led_cdev);
-       int ret;
-       unsigned long time;
+       int ret, time;
 
-       ret = strict_strtoul(buf, 10, &time);
+       ret = kstrtoint(buf, 10, &time);
        /* Numbers only, please. */
        if (ret)
-               return -EINVAL;
+               return ret;
 
        pwm->fade_time = time;
 
@@ -613,9 +612,9 @@ static ssize_t lm8323_set_disable(struct device *dev,
 {
        struct lm8323_chip *lm = dev_get_drvdata(dev);
        int ret;
-       unsigned long i;
+       unsigned int i;
 
-       ret = strict_strtoul(buf, 10, &i);
+       ret = kstrtouint(buf, 10, &i);
 
        mutex_lock(&lm->lock);
        lm->kp_enabled = !i;