* [PATCH] ARM: OMAP: Refrain compile warning for lm8323.c
@ 2008-04-22 13:21 Hiroshi DOYU
2008-04-22 19:24 ` Tony Lindgren
0 siblings, 1 reply; 2+ messages in thread
From: Hiroshi DOYU @ 2008-04-22 13:21 UTC (permalink / raw)
To: linux-omap; +Cc: Hiroshi DOYU
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>
---
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 3040622..c9ede10 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;
--
1.5.5.rc2.6.gf58d
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ARM: OMAP: Refrain compile warning for lm8323.c
2008-04-22 13:21 [PATCH] ARM: OMAP: Refrain compile warning for lm8323.c Hiroshi DOYU
@ 2008-04-22 19:24 ` Tony Lindgren
0 siblings, 0 replies; 2+ messages in thread
From: Tony Lindgren @ 2008-04-22 19:24 UTC (permalink / raw)
To: Hiroshi DOYU; +Cc: linux-omap
* Hiroshi DOYU <Hiroshi.DOYU@nokia.com> [080422 06:26]:
> 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>
> ---
> 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 3040622..c9ede10 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;
Pushing.
Tony
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-04-22 19:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-22 13:21 [PATCH] ARM: OMAP: Refrain compile warning for lm8323.c Hiroshi DOYU
2008-04-22 19:24 ` Tony Lindgren
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox