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

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

Commit Message

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

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

Comments

Josh Triplett Oct. 6, 2013, 9:24 p.m. UTC | #1
On Sun, Oct 06, 2013 at 03:35:24PM +0300, Ebru Akagunduz wrote:
> Fix checkpatch.pl issues with strict_strtol is obsolete, use kstrtol instead in sca3000_ring.c

You need to word-wrap your commit messages.

> Signed-off-by: Ebru Akagunduz <ebru.akagunduz@gmail.com>
> ---
>  drivers/staging/iio/accel/sca3000_ring.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/staging/iio/accel/sca3000_ring.c b/drivers/staging/iio/accel/sca3000_ring.c
> index 3e5e860..393100b 100644
> --- a/drivers/staging/iio/accel/sca3000_ring.c
> +++ b/drivers/staging/iio/accel/sca3000_ring.c
> @@ -181,7 +181,7 @@ static ssize_t sca3000_set_ring_int(struct device *dev,
>  	int ret;
>  
>  	mutex_lock(&st->lock);
> -	ret = strict_strtol(buf, 10, &val);
> +	ret = kstrtol(buf, 10, &val);
>  	if (ret)
>  		goto error_ret;
>  	ret = sca3000_read_data_short(st, SCA3000_REG_ADDR_INT_MASK, 1);
> -- 
> 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, 6:05 a.m. UTC | #2
On Sun, Oct 06, 2013 at 03:35:24PM +0300, Ebru Akagunduz wrote:
> Fix checkpatch.pl issues with strict_strtol is obsolete, use kstrtol
> instead in sca3000_ring.c
> 
> Signed-off-by: Ebru Akagunduz <ebru.akagunduz@gmail.com>
> ---
>  drivers/staging/iio/accel/sca3000_ring.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

This patch fails to apply, so I can't apply any of these :(

Can you please redo them and resend?

thanks,

greg k-h
Ebru Akagündüz Oct. 7, 2013, 12:44 p.m. UTC | #3
I will resend.

Patch
diff mbox

diff --git a/drivers/staging/iio/accel/sca3000_ring.c b/drivers/staging/iio/accel/sca3000_ring.c
index 3e5e860..393100b 100644
--- a/drivers/staging/iio/accel/sca3000_ring.c
+++ b/drivers/staging/iio/accel/sca3000_ring.c
@@ -181,7 +181,7 @@  static ssize_t sca3000_set_ring_int(struct device *dev,
 	int ret;
 
 	mutex_lock(&st->lock);
-	ret = strict_strtol(buf, 10, &val);
+	ret = kstrtol(buf, 10, &val);
 	if (ret)
 		goto error_ret;
 	ret = sca3000_read_data_short(st, SCA3000_REG_ADDR_INT_MASK, 1);