All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2/2] Eliminate camel case
@ 2019-03-18 16:59 vatsalanarang
  2019-03-18 17:41 ` Greg KH
  2019-03-18 18:16 ` Vatsala Narang
  0 siblings, 2 replies; 3+ messages in thread
From: vatsalanarang @ 2019-03-18 16:59 UTC (permalink / raw)
  To: outreachy-kernel; +Cc: gregkh, vatsalanarang

Issue reported by checkpatch.pl tool

Signed-off-by: Vatsala Narang <vatsalanarang@gmail.com>
---
 drivers/staging/sm750fb/ddk750_display.c | 5 ++---
 drivers/staging/sm750fb/ddk750_power.h   | 2 +-
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/drivers/staging/sm750fb/ddk750_display.c b/drivers/staging/sm750fb/ddk750_display.c
index 7f28e4cc4c79..6380e1536598 100644
--- a/drivers/staging/sm750fb/ddk750_display.c
+++ b/drivers/staging/sm750fb/ddk750_display.c
@@ -147,8 +147,8 @@ void ddk750_set_logical_disp_out(enum disp_output output)
 
 	if (output & PNL_SEQ_USAGE) {
 		/* set  panel sequence */
-		sw_panel_power_sequence
-		((output & PNL_SEQ_MASK) >> PNL_SEQ_OFFSET, 4);
+		sw_panel_power_sequence((output & PNL_SEQ_MASK) >> PNL_SEQ_OFFSET,
+				4);
 	}
 
 	if (output & DAC_USAGE)
@@ -156,4 +156,3 @@ void ddk750_set_logical_disp_out(enum disp_output output)
 
 	if (output & DPMS_USAGE)
 		ddk750_set_dpms((output & DPMS_MASK) >> DPMS_OFFSET);
}
diff --git a/drivers/staging/sm750fb/ddk750_power.h b/drivers/staging/sm750fb/ddk750_power.h
index e48c74ecbbd1..7002567a47d2 100644
--- a/drivers/staging/sm750fb/ddk750_power.h
+++ b/drivers/staging/sm750fb/ddk750_power.h
@@ -9,7 +9,7 @@ enum dpms {
 	crtDPMS_OFF = 0x3,
 };
 
-#define setDAC(off) {							\
+#define set_DAC(off) {							\
 	poke32(MISC_CTRL,						\
 	       (peek32(MISC_CTRL) & ~MISC_CTRL_DAC_POWER_OFF) | (off)); \
 }
-- 
2.17.1



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

* Re: [PATCH 2/2] Eliminate camel case
  2019-03-18 16:59 [PATCH 2/2] Eliminate camel case vatsalanarang
@ 2019-03-18 17:41 ` Greg KH
  2019-03-18 18:16 ` Vatsala Narang
  1 sibling, 0 replies; 3+ messages in thread
From: Greg KH @ 2019-03-18 17:41 UTC (permalink / raw)
  To: vatsalanarang; +Cc: outreachy-kernel

On Mon, Mar 18, 2019 at 10:29:38PM +0530, vatsalanarang wrote:
> Issue reported by checkpatch.pl tool
> 
> Signed-off-by: Vatsala Narang <vatsalanarang@gmail.com>
> ---
>  drivers/staging/sm750fb/ddk750_display.c | 5 ++---
>  drivers/staging/sm750fb/ddk750_power.h   | 2 +-
>  2 files changed, 3 insertions(+), 4 deletions(-)
> 
> diff --git a/drivers/staging/sm750fb/ddk750_display.c b/drivers/staging/sm750fb/ddk750_display.c
> index 7f28e4cc4c79..6380e1536598 100644
> --- a/drivers/staging/sm750fb/ddk750_display.c
> +++ b/drivers/staging/sm750fb/ddk750_display.c
> @@ -147,8 +147,8 @@ void ddk750_set_logical_disp_out(enum disp_output output)
>  
>  	if (output & PNL_SEQ_USAGE) {
>  		/* set  panel sequence */
> -		sw_panel_power_sequence
> -		((output & PNL_SEQ_MASK) >> PNL_SEQ_OFFSET, 4);
> +		sw_panel_power_sequence((output & PNL_SEQ_MASK) >> PNL_SEQ_OFFSET,
> +				4);

This is not what your subject said it was doing :(

Also, it doesn't look correct, right?

And your From: line needs to match your signed-off-by line.

And finally, this is patch 2/2?  Where is 1/2?

thanks,

greg k-h


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

* Re: [PATCH 2/2] Eliminate camel case
  2019-03-18 16:59 [PATCH 2/2] Eliminate camel case vatsalanarang
  2019-03-18 17:41 ` Greg KH
@ 2019-03-18 18:16 ` Vatsala Narang
  1 sibling, 0 replies; 3+ messages in thread
From: Vatsala Narang @ 2019-03-18 18:16 UTC (permalink / raw)
  To: outreachy-kernel


[-- Attachment #1.1: Type: text/plain, Size: 536 bytes --]

Patch 1/2 is under the heading:Edit CamelCase function names to make code 
more readable; as the heading earlier was too long so I made it concise

> -                sw_panel_power_sequence 
> -                ((output & PNL_SEQ_MASK) >> PNL_SEQ_OFFSET, 4); 
> +                sw_panel_power_sequence((output & PNL_SEQ_MASK) >> 
> PNL_SEQ_OFFSET, 
> +                                4); 
>  
>
I corrected its camelcase in earlier patch,if the patchset should have 
similar title, I will combine both and resend it.
thanks,
Vatsala
 

[-- Attachment #1.2: Type: text/html, Size: 857 bytes --]

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

end of thread, other threads:[~2019-03-18 18:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-18 16:59 [PATCH 2/2] Eliminate camel case vatsalanarang
2019-03-18 17:41 ` Greg KH
2019-03-18 18:16 ` Vatsala Narang

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.