Re: [PATCH] ARM: OMAP: Refrain compile warning for lm8323.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* Hiroshi DOYU <Hiroshi.DOYU@xxxxxxxxx> [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@xxxxxxxxx>
> ---
>  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
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux