diff options
author | Hiroshi DOYU <Hiroshi.DOYU@nokia.com> | 2008-04-22 16:21:53 +0300 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2008-04-22 12:25:44 -0700 |
commit | 3ce7ba0c3c9566f50725b0108916180db86e1641 (patch) | |
tree | 573e5d9d4148aa3b6504b95ef4f5078265a945f0 | |
parent | 8964c7d13133723ef2fe6a2b798a3fd336b15f4e (diff) |
ARM: OMAP: Refrain compile warning for lm8323.cv2.6.25-omap1
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>
-rw-r--r-- | drivers/input/keyboard/lm8323.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/input/keyboard/lm8323.c b/drivers/input/keyboard/lm8323.c index 3040622eee5..c9ede1067a5 100644 --- a/drivers/input/keyboard/lm8323.c +++ b/drivers/input/keyboard/lm8323.c @@ -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; |