]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/input/keyboard/lm8323.c
ARM: OMAP: Refrain compile warning for lm8323.c
[linux-2.6-omap-h63xx.git] / drivers / input / keyboard / lm8323.c
index 3040622eee5aa511c8f285a3e6228ef9e13a0867..c9ede1067a51dbe85b1f4538c8c32d50d87b0bb0 100644 (file)
@@ -587,7 +587,7 @@ static ssize_t lm8323_pwm_store_time(struct device *dev,
        int ret;
        int time;
 
-       ret = strict_strtoul(buf, 10, &time);
+       ret = sscanf(buf, "%d", &time);
        /* Numbers only, please. */
        if (ret)
                return -EINVAL;
@@ -661,7 +661,7 @@ static ssize_t lm8323_set_disable(struct device *dev,
        int ret;
        int i;
 
-       i = strict_strtoul(buf, 10, &ret);
+       i = sscanf(buf, "%d", &ret);
 
        mutex_lock(&lm->lock);
        lm->kp_enabled = !i;