[PATCH] staging: line6: replace strict_strto* with kstrto*

Dan Carpenter dan.carpenter at oracle.com
Wed Sep 26 20:44:48 UTC 2012


On Wed, Sep 26, 2012 at 10:41:05PM +0200, Daniel Walter wrote:
> [staging] line6: replace strict_strtoul/strict_strtol with kstrtoul/kstrtol

Remove this line.  Slow down!!!  You should be sending patches
without letting them age overnight.

It should say [PATCH v2] in the subject.

> 
>  * replace deprecated string conversions with kstrtol/kstrtoul
> 
> Signed-off-by: Daniel Walter <sahne at 0x90.at>;
> ---
> apply against current linux-next

v2: apply against current linux-next

> ---
> diff --git a/drivers/staging/line6/toneport.c b/drivers/staging/line6/toneport.c
> index 31b624b..0828480 100644
> --- a/drivers/staging/line6/toneport.c
> +++ b/drivers/staging/line6/toneport.c
> @@ -129,7 +129,7 @@ static ssize_t toneport_set_led_red(struct device *dev,
>  	int retval;
>  	long value;
>  
> -	retval = strict_strtol(buf, 10, &value);
> +	retval = kstrtol(buf, 10, &value);

kstrtoint()

>  	if (retval)
>  		return retval;
>  
> @@ -145,7 +145,7 @@ static ssize_t toneport_set_led_green(struct device *dev,
>  	int retval;
>  	long value;
>  
> -	retval = strict_strtol(buf, 10, &value);
> +	retval = kstrtol(buf, 10, &value);
>  	if (retval)
>  		return retval;
>  
> _______________________________________________
> devel mailing list
> devel at linuxdriverproject.org
> http://driverdev.linuxdriverproject.org/mailman/listinfo/devel



More information about the devel mailing list