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;