[OPW,kernel,2/2] Staging: iio: printk(KERN_INFO ...
diff mbox

Message ID 1381061738-6553-2-git-send-email-ebru.akagunduz@gmail.com
State Accepted
Headers show

Commit Message

Ebru Akagündüz Oct. 6, 2013, 12:15 p.m. UTC
Fix checkpatch.pl issues with prefer netdev_info(netdev, .. then dev_info(dev, ..
then pr_info(...  to printk(KERN_INFO .. in lis3l02dq_ring.c

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

Comments

Josh Triplett Oct. 6, 2013, 9:20 p.m. UTC | #1
On Sun, Oct 06, 2013 at 03:15:38PM +0300, Ebru Akagunduz wrote:
> Fix checkpatch.pl issues with prefer netdev_info(netdev, .. then dev_info(dev, ..
> then pr_info(...  to printk(KERN_INFO .. in lis3l02dq_ring.c
> 
> Signed-off-by: Ebru Akagunduz <ebru.akagunduz@gmail.com>

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

> ---
>  drivers/staging/iio/accel/lis3l02dq_ring.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/drivers/staging/iio/accel/lis3l02dq_ring.c b/drivers/staging/iio/accel/lis3l02dq_ring.c
> index 7ccae04..414a13d 100644
> --- a/drivers/staging/iio/accel/lis3l02dq_ring.c
> +++ b/drivers/staging/iio/accel/lis3l02dq_ring.c
> @@ -264,8 +264,7 @@ static int lis3l02dq_trig_try_reen(struct iio_trigger *trig)
>  		else
>  			break;
>  	if (i == 5)
> -		printk(KERN_INFO
> -		       "Failed to clear the interrupt for lis3l02dq\n");
> +		pr_info("Failed to clear the interrupt for lis3l02dq\n");
>  
>  	/* irq reenabled so success! */
>  	return 0;
> -- 
> 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:19 a.m. UTC | #2
On Sun, Oct 06, 2013 at 03:15:38PM +0300, Ebru Akagunduz wrote:
> Fix checkpatch.pl issues with prefer netdev_info(netdev, .. then dev_info(dev, ..
> then pr_info(...  to printk(KERN_INFO .. in lis3l02dq_ring.c
> 
> Signed-off-by: Ebru Akagunduz <ebru.akagunduz@gmail.com>

Applied, thanks.

greg k-h

Patch
diff mbox

diff --git a/drivers/staging/iio/accel/lis3l02dq_ring.c b/drivers/staging/iio/accel/lis3l02dq_ring.c
index 7ccae04..414a13d 100644
--- a/drivers/staging/iio/accel/lis3l02dq_ring.c
+++ b/drivers/staging/iio/accel/lis3l02dq_ring.c
@@ -264,8 +264,7 @@  static int lis3l02dq_trig_try_reen(struct iio_trigger *trig)
 		else
 			break;
 	if (i == 5)
-		printk(KERN_INFO
-		       "Failed to clear the interrupt for lis3l02dq\n");
+		pr_info("Failed to clear the interrupt for lis3l02dq\n");
 
 	/* irq reenabled so success! */
 	return 0;