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: Hiroshi DOYU <Hiroshi.DOYU@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
int ret;
int time;
- ret = strict_strtoul(buf, 10, &time);
+ ret = sscanf(buf, "%d", &time);
/* Numbers only, please. */
if (ret)
return -EINVAL;
int ret;
int i;
- i = strict_strtoul(buf, 10, &ret);
+ i = sscanf(buf, "%d", &ret);
mutex_lock(&lm->lock);
lm->kp_enabled = !i;