[OPW,kernel] Staging: iio: fix strict_strtol is obsolete, use kstrtol instead
diff mbox

Message ID 1381062043-6683-1-git-send-email-ebru.akagunduz@gmail.com
State Not Applicable
Headers show

Commit Message

Ebru Akagündüz Oct. 6, 2013, 12:20 p.m. UTC
Fix checkpatch.pl issues with strict_strtol is obsolete, use kstrtol instead in sca3000_core.c

Signed-off-by: Ebru Akagunduz <ebru.akagunduz@gmail.com>
---
 drivers/staging/iio/accel/sca3000_core.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Josh Triplett Oct. 6, 2013, 9:21 p.m. UTC | #1
On Sun, Oct 06, 2013 at 03:20:43PM +0300, Ebru Akagunduz wrote:
> Fix checkpatch.pl issues with strict_strtol is obsolete, use kstrtol instead in sca3000_core.c
> 
> Signed-off-by: Ebru Akagunduz <ebru.akagunduz@gmail.com>

Reviewed-by: Josh Triplett <josh@joshtriplett.org>

> ---
>  drivers/staging/iio/accel/sca3000_core.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/staging/iio/accel/sca3000_core.c b/drivers/staging/iio/accel/sca3000_core.c
> index 48a25ba..d162540 100644
> --- a/drivers/staging/iio/accel/sca3000_core.c
> +++ b/drivers/staging/iio/accel/sca3000_core.c
> @@ -626,7 +626,7 @@ static ssize_t sca3000_set_frequency(struct device *dev,
>  	int ctrlval;
>  	long val;
>  
> -	ret = strict_strtol(buf, 10, &val);
> +	ret = kstrtol(buf, 10, &val);
>  	if (ret)
>  		return ret;
>  
> @@ -936,7 +936,7 @@ static ssize_t sca3000_set_free_fall_mode(struct device *dev,
>  	u8 protect_mask = SCA3000_FREE_FALL_DETECT;
>  
>  	mutex_lock(&st->lock);
> -	ret = strict_strtol(buf, 10, &val);
> +	ret = kstrtol(buf, 10, &val);
>  	if (ret)
>  		goto error_ret;
>  
> -- 
> 1.8.1.2
> 
> -- 
> You received this message because you are subscribed to the Google Groups "opw-kernel" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to opw-kernel+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
Greg Kroah-Hartman Oct. 7, 2013, 5:59 a.m. UTC | #2
On Sun, Oct 06, 2013 at 03:20:43PM +0300, Ebru Akagunduz wrote:
> Fix checkpatch.pl issues with strict_strtol is obsolete, use kstrtol
> instead in sca3000_core.c
> 
> Signed-off-by: Ebru Akagunduz <ebru.akagunduz@gmail.com>
> Reviewed-by: Josh Triplett <josh@joshtriplett.org>

Someone already fixed this in my tree, so I can't apply this :(

If you work off of the linux-next releases, you can pick this up and not
duplicate work, which I strongly recommend doing.

thanks,

greg k-h

Patch
diff mbox

diff --git a/drivers/staging/iio/accel/sca3000_core.c b/drivers/staging/iio/accel/sca3000_core.c
index 48a25ba..d162540 100644
--- a/drivers/staging/iio/accel/sca3000_core.c
+++ b/drivers/staging/iio/accel/sca3000_core.c
@@ -626,7 +626,7 @@  static ssize_t sca3000_set_frequency(struct device *dev,
 	int ctrlval;
 	long val;
 
-	ret = strict_strtol(buf, 10, &val);
+	ret = kstrtol(buf, 10, &val);
 	if (ret)
 		return ret;
 
@@ -936,7 +936,7 @@  static ssize_t sca3000_set_free_fall_mode(struct device *dev,
 	u8 protect_mask = SCA3000_FREE_FALL_DETECT;
 
 	mutex_lock(&st->lock);
-	ret = strict_strtol(buf, 10, &val);
+	ret = kstrtol(buf, 10, &val);
 	if (ret)
 		goto error_ret;