Commit 3ce7ba0c authored by Hiroshi DOYU's avatar Hiroshi DOYU Committed by Tony Lindgren

ARM: OMAP: Refrain compile warning for lm8323.c

drivers/input/keyboard/lm8323.c: In function 'lm8323_pwm_store_time':
drivers/input/keyboard/lm8323.c:590: warning: passing argument 3 of 'strict_strtoul' from incompatible pointer type
drivers/input/keyboard/lm8323.c: In function 'lm8323_set_disable':
drivers/input/keyboard/lm8323.c:664: warning: passing argument 3 of 'strict_strtoul' from incompatible pointer type
Signed-off-by: default avatarHiroshi DOYU <Hiroshi.DOYU@nokia.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 8964c7d1
......@@ -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;
......
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