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

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

 



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@xxxxxxx>;
> ---
> 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@xxxxxxxxxxxxxxxxxxxxxx
> http://driverdev.linuxdriverproject.org/mailman/listinfo/devel
_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel


[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux