All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] staging: fbtft: Removed a space
@ 2015-08-20 13:56 Aparna Karuthodi
  2015-08-21 11:04 ` Dan Carpenter
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: Aparna Karuthodi @ 2015-08-20 13:56 UTC (permalink / raw)
  To: gregkh; +Cc: thomas.petazzoni, linux-kernel, devel, Aparna Karuthodi

Removed a space before parenthesis to remove a coding style error
detected by checkpatch.
The error is given below:
drivers/staging/fbtft/fb_bd663474.c:118: ERROR: space prohibited before
that close parenthesis ')'

Signed-off-by: Aparna Karuthodi <kdasaparna@gmail.com>
---
 drivers/staging/fbtft/fb_bd663474.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/fbtft/fb_bd663474.c b/drivers/staging/fbtft/fb_bd663474.c
index 7e00c60..8619426 100644
--- a/drivers/staging/fbtft/fb_bd663474.c
+++ b/drivers/staging/fbtft/fb_bd663474.c
@@ -115,7 +115,7 @@ static int init_display(struct fbtft_par *par)
 	write_reg(par, 0x100, 0x7120 );
 	write_reg(par, 0x007, 0x0103 );
 	mdelay( 10 );
-	write_reg(par, 0x007, 0x0113 );
+	write_reg(par, 0x007, 0x0113);
 
 	return 0;
 }
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* Re: [PATCH] staging: fbtft: Removed a space
  2015-08-20 13:56 [PATCH] staging: fbtft: Removed a space Aparna Karuthodi
@ 2015-08-21 11:04 ` Dan Carpenter
  2015-08-21 12:25 ` Aparna Karuthodi
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 10+ messages in thread
From: Dan Carpenter @ 2015-08-21 11:04 UTC (permalink / raw)
  To: Aparna Karuthodi; +Cc: gregkh, devel, linux-kernel

On Thu, Aug 20, 2015 at 07:26:59PM +0530, Aparna Karuthodi wrote:
> Removed a space before parenthesis to remove a coding style error
> detected by checkpatch.
> The error is given below:
> drivers/staging/fbtft/fb_bd663474.c:118: ERROR: space prohibited before
> that close parenthesis ')'
> 
> Signed-off-by: Aparna Karuthodi <kdasaparna@gmail.com>
> ---
>  drivers/staging/fbtft/fb_bd663474.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/staging/fbtft/fb_bd663474.c b/drivers/staging/fbtft/fb_bd663474.c
> index 7e00c60..8619426 100644
> --- a/drivers/staging/fbtft/fb_bd663474.c
> +++ b/drivers/staging/fbtft/fb_bd663474.c
> @@ -115,7 +115,7 @@ static int init_display(struct fbtft_par *par)
>  	write_reg(par, 0x100, 0x7120 );
>  	write_reg(par, 0x007, 0x0103 );
>  	mdelay( 10 );
> -	write_reg(par, 0x007, 0x0113 );
> +	write_reg(par, 0x007, 0x0113);

Every other line in the surrounding context has the same issue.  Please
don't just change one line at a time like this...  It is a waste of our
time.

regards,
dan carpenter


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [PATCH] staging: fbtft: Removed a space
  2015-08-20 13:56 [PATCH] staging: fbtft: Removed a space Aparna Karuthodi
  2015-08-21 11:04 ` Dan Carpenter
@ 2015-08-21 12:25 ` Aparna Karuthodi
  2015-08-21 12:34   ` Mike Rapoport
  2015-08-21 13:01 ` Aparna Karuthodi
                   ` (2 subsequent siblings)
  4 siblings, 1 reply; 10+ messages in thread
From: Aparna Karuthodi @ 2015-08-21 12:25 UTC (permalink / raw)
  To: gregkh; +Cc: thomas.petazzoni, linux-kernel, noralf, devel, Aparna Karuthodi

Okay. I will make the necessary changes and send it again.
If I am making changes in each of the lines, should I send it as a
patchset?

Signed-off-by: Aparna Karuthodi <kdasaparna@gmail.com>
---
 drivers/staging/fbtft/fb_bd663474.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/fbtft/fb_bd663474.c b/drivers/staging/fbtft/fb_bd663474.c
index 7e00c60..8619426 100644
--- a/drivers/staging/fbtft/fb_bd663474.c
+++ b/drivers/staging/fbtft/fb_bd663474.c
@@ -115,7 +115,7 @@ static int init_display(struct fbtft_par *par)
 	write_reg(par, 0x100, 0x7120 );
 	write_reg(par, 0x007, 0x0103 );
 	mdelay( 10 );
-	write_reg(par, 0x007, 0x0113 );
+	write_reg(par, 0x007, 0x0113);
 
 	return 0;
 }
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* Re: [PATCH] staging: fbtft: Removed a space
  2015-08-21 12:25 ` Aparna Karuthodi
@ 2015-08-21 12:34   ` Mike Rapoport
  0 siblings, 0 replies; 10+ messages in thread
From: Mike Rapoport @ 2015-08-21 12:34 UTC (permalink / raw)
  To: Aparna Karuthodi; +Cc: gregkh, thomas.petazzoni, linux-kernel, noralf, devel

On Fri, Aug 21, 2015 at 05:55:28PM +0530, Aparna Karuthodi wrote:
> Okay. I will make the necessary changes and send it again.
> If I am making changes in each of the lines, should I send it as a
> patchset?

It seems that these checkpatch errors were already fixed in commit that
was already merged:

commit 171c44fcbbf243a327cd2667a74b59b871489b91
Author: Aya Mahfouz <mahfouz.saif.elyazal@gmail.com>
Date:   Tue Feb 17 19:48:51 2015 +0200

    staging: fbtft: fix spacing errors

Are you sure you have the recent kernel tree?
 
> Signed-off-by: Aparna Karuthodi <kdasaparna@gmail.com>
> ---
>  drivers/staging/fbtft/fb_bd663474.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/staging/fbtft/fb_bd663474.c b/drivers/staging/fbtft/fb_bd663474.c
> index 7e00c60..8619426 100644
> --- a/drivers/staging/fbtft/fb_bd663474.c
> +++ b/drivers/staging/fbtft/fb_bd663474.c
> @@ -115,7 +115,7 @@ static int init_display(struct fbtft_par *par)
>  	write_reg(par, 0x100, 0x7120 );
>  	write_reg(par, 0x007, 0x0103 );
>  	mdelay( 10 );
> -	write_reg(par, 0x007, 0x0113 );
> +	write_reg(par, 0x007, 0x0113);
>  
>  	return 0;
>  }
> -- 
> 1.7.9.5
 
--
Sincerely yours,
Mike.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [PATCH] staging: fbtft: Removed a space
  2015-08-20 13:56 [PATCH] staging: fbtft: Removed a space Aparna Karuthodi
  2015-08-21 11:04 ` Dan Carpenter
  2015-08-21 12:25 ` Aparna Karuthodi
@ 2015-08-21 13:01 ` Aparna Karuthodi
  2015-08-21 13:26   ` Mike Rapoport
  2015-09-03  1:10   ` Greg KH
  2015-08-21 13:43 ` Aparna Karuthodi
  2015-08-21 15:35 ` [PATCH] staging: fbtft: Removed space before parenthesis Aparna Karuthodi
  4 siblings, 2 replies; 10+ messages in thread
From: Aparna Karuthodi @ 2015-08-21 13:01 UTC (permalink / raw)
  To: gregkh; +Cc: thomas.petazzoni, linux-kernel, noralf, devel, Aparna Karuthodi

I fetched it yesterday using git fetch origin master. So, I thought I am in the recent kernel tree.

Signed-off-by: Aparna Karuthodi <kdasaparna@gmail.com>
---
 drivers/staging/fbtft/fb_bd663474.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/fbtft/fb_bd663474.c b/drivers/staging/fbtft/fb_bd663474.c
index 7e00c60..8619426 100644
--- a/drivers/staging/fbtft/fb_bd663474.c
+++ b/drivers/staging/fbtft/fb_bd663474.c
@@ -115,7 +115,7 @@ static int init_display(struct fbtft_par *par)
 	write_reg(par, 0x100, 0x7120 );
 	write_reg(par, 0x007, 0x0103 );
 	mdelay( 10 );
-	write_reg(par, 0x007, 0x0113 );
+	write_reg(par, 0x007, 0x0113);
 
 	return 0;
 }
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* Re: [PATCH] staging: fbtft: Removed a space
  2015-08-21 13:01 ` Aparna Karuthodi
@ 2015-08-21 13:26   ` Mike Rapoport
  2015-09-03  1:10   ` Greg KH
  1 sibling, 0 replies; 10+ messages in thread
From: Mike Rapoport @ 2015-08-21 13:26 UTC (permalink / raw)
  To: Aparna Karuthodi; +Cc: gregkh, thomas.petazzoni, linux-kernel, noralf, devel

On Fri, Aug 21, 2015 at 06:31:33PM +0530, Aparna Karuthodi wrote:
> I fetched it yesterday using git fetch origin master. So, I thought I am in the recent kernel tree.

In current Linus' tree the fb_bd663474 driver does not have these style
errors.
Either your 'origin' is pointing to some tree that was not updated for a
long time, or you've only fetched the latest changes from the remote and
haven't merged them into your working tree.
 
> Signed-off-by: Aparna Karuthodi <kdasaparna@gmail.com>
> ---
>  drivers/staging/fbtft/fb_bd663474.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/staging/fbtft/fb_bd663474.c b/drivers/staging/fbtft/fb_bd663474.c
> index 7e00c60..8619426 100644
> --- a/drivers/staging/fbtft/fb_bd663474.c
> +++ b/drivers/staging/fbtft/fb_bd663474.c
> @@ -115,7 +115,7 @@ static int init_display(struct fbtft_par *par)
>  	write_reg(par, 0x100, 0x7120 );
>  	write_reg(par, 0x007, 0x0103 );
>  	mdelay( 10 );
> -	write_reg(par, 0x007, 0x0113 );
> +	write_reg(par, 0x007, 0x0113);
>  
>  	return 0;
>  }
> -- 
> 1.7.9.5
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [PATCH] staging: fbtft: Removed a space
  2015-08-20 13:56 [PATCH] staging: fbtft: Removed a space Aparna Karuthodi
                   ` (2 preceding siblings ...)
  2015-08-21 13:01 ` Aparna Karuthodi
@ 2015-08-21 13:43 ` Aparna Karuthodi
  2015-08-21 15:35 ` [PATCH] staging: fbtft: Removed space before parenthesis Aparna Karuthodi
  4 siblings, 0 replies; 10+ messages in thread
From: Aparna Karuthodi @ 2015-08-21 13:43 UTC (permalink / raw)
  To: gregkh; +Cc: thomas.petazzoni, linux-kernel, noralf, devel, Aparna Karuthodi

Now I understood my mistake. I was calling git fetch or git pull not from master branch. Now when I ran that command from master branch it's working.

Signed-off-by: Aparna Karuthodi <kdasaparna@gmail.com>
---
 drivers/staging/fbtft/fb_bd663474.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/fbtft/fb_bd663474.c b/drivers/staging/fbtft/fb_bd663474.c
index 7e00c60..8619426 100644
--- a/drivers/staging/fbtft/fb_bd663474.c
+++ b/drivers/staging/fbtft/fb_bd663474.c
@@ -115,7 +115,7 @@ static int init_display(struct fbtft_par *par)
 	write_reg(par, 0x100, 0x7120 );
 	write_reg(par, 0x007, 0x0103 );
 	mdelay( 10 );
-	write_reg(par, 0x007, 0x0113 );
+	write_reg(par, 0x007, 0x0113);
 
 	return 0;
 }
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH] staging: fbtft: Removed space before parenthesis
  2015-08-20 13:56 [PATCH] staging: fbtft: Removed a space Aparna Karuthodi
                   ` (3 preceding siblings ...)
  2015-08-21 13:43 ` Aparna Karuthodi
@ 2015-08-21 15:35 ` Aparna Karuthodi
  2015-08-24 13:06   ` Sudip Mukherjee
  4 siblings, 1 reply; 10+ messages in thread
From: Aparna Karuthodi @ 2015-08-21 15:35 UTC (permalink / raw)
  To: gregkh; +Cc: thomas.petazzoni, linux-kernel, noralf, devel, Aparna Karuthodi

Removed space before parenthesis in two different lines to remove coding
style errors detected by checkpatch.
The errors are given below:
drivers/staging/fbtft/fbtft-bus.c:73: ERROR: space prohibited before
that close parenthesis ')'
drivers/staging/fbtft/fbtft-bus.c:75: ERROR: space prohibited before
that close parenthesis ')'

Signed-off-by: Aparna Karuthodi <kdasaparna@gmail.com>
---
 drivers/staging/fbtft/fbtft-bus.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/fbtft/fbtft-bus.c b/drivers/staging/fbtft/fbtft-bus.c
index b3cddb0..791fab3 100644
--- a/drivers/staging/fbtft/fbtft-bus.c
+++ b/drivers/staging/fbtft/fbtft-bus.c
@@ -70,9 +70,9 @@ void func(struct fbtft_par *par, int len, ...)                                \
 }                                                                             \
 EXPORT_SYMBOL(func);
 
-define_fbtft_write_reg(fbtft_write_reg8_bus8, u8, )
+define_fbtft_write_reg(fbtft_write_reg8_bus8, u8)
 define_fbtft_write_reg(fbtft_write_reg16_bus8, u16, cpu_to_be16)
-define_fbtft_write_reg(fbtft_write_reg16_bus16, u16, )
+define_fbtft_write_reg(fbtft_write_reg16_bus16, u16)
 
 void fbtft_write_reg8_bus9(struct fbtft_par *par, int len, ...)
 {
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* Re: [PATCH] staging: fbtft: Removed space before parenthesis
  2015-08-21 15:35 ` [PATCH] staging: fbtft: Removed space before parenthesis Aparna Karuthodi
@ 2015-08-24 13:06   ` Sudip Mukherjee
  0 siblings, 0 replies; 10+ messages in thread
From: Sudip Mukherjee @ 2015-08-24 13:06 UTC (permalink / raw)
  To: Aparna Karuthodi; +Cc: gregkh, devel, noralf, linux-kernel

On Fri, Aug 21, 2015 at 09:05:47PM +0530, Aparna Karuthodi wrote:
> Removed space before parenthesis in two different lines to remove coding
> style errors detected by checkpatch.
> The errors are given below:
> drivers/staging/fbtft/fbtft-bus.c:73: ERROR: space prohibited before
> that close parenthesis ')'
> drivers/staging/fbtft/fbtft-bus.c:75: ERROR: space prohibited before
> that close parenthesis ')'
> 
> Signed-off-by: Aparna Karuthodi <kdasaparna@gmail.com>
> ---
>  drivers/staging/fbtft/fbtft-bus.c |    4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/staging/fbtft/fbtft-bus.c b/drivers/staging/fbtft/fbtft-bus.c
> index b3cddb0..791fab3 100644
> --- a/drivers/staging/fbtft/fbtft-bus.c
> +++ b/drivers/staging/fbtft/fbtft-bus.c
> @@ -70,9 +70,9 @@ void func(struct fbtft_par *par, int len, ...)                                \
>  }                                                                             \
>  EXPORT_SYMBOL(func);
>  
> -define_fbtft_write_reg(fbtft_write_reg8_bus8, u8, )
> +define_fbtft_write_reg(fbtft_write_reg8_bus8, u8)
>  define_fbtft_write_reg(fbtft_write_reg16_bus8, u16, cpu_to_be16)
> -define_fbtft_write_reg(fbtft_write_reg16_bus16, u16, )
> +define_fbtft_write_reg(fbtft_write_reg16_bus16, u16)
Did you build test it?
You have removed ',' while removing the space and that breaks the build.

regards
sudip

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] staging: fbtft: Removed a space
  2015-08-21 13:01 ` Aparna Karuthodi
  2015-08-21 13:26   ` Mike Rapoport
@ 2015-09-03  1:10   ` Greg KH
  1 sibling, 0 replies; 10+ messages in thread
From: Greg KH @ 2015-09-03  1:10 UTC (permalink / raw)
  To: Aparna Karuthodi; +Cc: devel, noralf, linux-kernel

On Fri, Aug 21, 2015 at 06:31:33PM +0530, Aparna Karuthodi wrote:
> I fetched it yesterday using git fetch origin master. So, I thought I am in the recent kernel tree.

That's a horrible changelog text :(


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2015-09-03  1:10 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-20 13:56 [PATCH] staging: fbtft: Removed a space Aparna Karuthodi
2015-08-21 11:04 ` Dan Carpenter
2015-08-21 12:25 ` Aparna Karuthodi
2015-08-21 12:34   ` Mike Rapoport
2015-08-21 13:01 ` Aparna Karuthodi
2015-08-21 13:26   ` Mike Rapoport
2015-09-03  1:10   ` Greg KH
2015-08-21 13:43 ` Aparna Karuthodi
2015-08-21 15:35 ` [PATCH] staging: fbtft: Removed space before parenthesis Aparna Karuthodi
2015-08-24 13:06   ` Sudip Mukherjee

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.