All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] staging: sm750fb: Edit CamelCase in ddk750_power.h
@ 2019-10-18  2:01 Jamal Shareef
  2019-10-18  6:30 ` [Outreachy kernel] " Julia Lawall
  0 siblings, 1 reply; 3+ messages in thread
From: Jamal Shareef @ 2019-10-18  2:01 UTC (permalink / raw)
  To: outreachy-kernel; +Cc: Jamal Shareef, sudipm.mukherjee, teddy.wang, gregkh

Removes instances of CamelCase. Issue found by checkpatch.

Signed-off-by: Jamal Shareef <jamal.k.shareef@gmail.com>
---
 drivers/staging/sm750fb/ddk750_power.h | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/drivers/staging/sm750fb/ddk750_power.h b/drivers/staging/sm750fb/ddk750_power.h
index 7002567a47d2..cd892f2b717f 100644
--- a/drivers/staging/sm750fb/ddk750_power.h
+++ b/drivers/staging/sm750fb/ddk750_power.h
@@ -3,10 +3,10 @@
 #define DDK750_POWER_H__
 
 enum dpms {
-	crtDPMS_ON = 0x0,
-	crtDPMS_STANDBY = 0x1,
-	crtDPMS_SUSPEND = 0x2,
-	crtDPMS_OFF = 0x3,
+	crt_DPMS_ON = 0x0,
+	crt_DPMS_STANDBY = 0x1,
+	crt_DPMS_SUSPEND = 0x2,
+	crt_DPMS_OFF = 0x3,
 };
 
 #define set_DAC(off) {							\
@@ -15,7 +15,7 @@ enum dpms {
 }
 
 void ddk750_set_dpms(enum dpms state);
-void sm750_set_power_mode(unsigned int powerMode);
+void sm750_set_power_mode(unsigned int power_mode);
 void sm750_set_current_gate(unsigned int gate);
 
 /*
-- 
2.17.1



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

* Re: [Outreachy kernel] [PATCH] staging: sm750fb: Edit CamelCase in ddk750_power.h
  2019-10-18  2:01 [PATCH] staging: sm750fb: Edit CamelCase in ddk750_power.h Jamal Shareef
@ 2019-10-18  6:30 ` Julia Lawall
  2019-10-20 22:11   ` Jamal Shareef
  0 siblings, 1 reply; 3+ messages in thread
From: Julia Lawall @ 2019-10-18  6:30 UTC (permalink / raw)
  To: Jamal Shareef; +Cc: outreachy-kernel, sudipm.mukherjee, teddy.wang, gregkh

You don't need to put the name of the file in the subject line.  One can
see that easily from the diffstat information.

On Thu, 17 Oct 2019, Jamal Shareef wrote:

> Removes instances of CamelCase. Issue found by checkpatch.
>
> Signed-off-by: Jamal Shareef <jamal.k.shareef@gmail.com>
> ---
>  drivers/staging/sm750fb/ddk750_power.h | 10 +++++-----
>  1 file changed, 5 insertions(+), 5 deletions(-)
>
> diff --git a/drivers/staging/sm750fb/ddk750_power.h b/drivers/staging/sm750fb/ddk750_power.h
> index 7002567a47d2..cd892f2b717f 100644
> --- a/drivers/staging/sm750fb/ddk750_power.h
> +++ b/drivers/staging/sm750fb/ddk750_power.h
> @@ -3,10 +3,10 @@
>  #define DDK750_POWER_H__
>
>  enum dpms {
> -	crtDPMS_ON = 0x0,
> -	crtDPMS_STANDBY = 0x1,
> -	crtDPMS_SUSPEND = 0x2,
> -	crtDPMS_OFF = 0x3,
> +	crt_DPMS_ON = 0x0,
> +	crt_DPMS_STANDBY = 0x1,
> +	crt_DPMS_SUSPEND = 0x2,
> +	crt_DPMS_OFF = 0x3,
>  };
>
>  #define set_DAC(off) {							\
> @@ -15,7 +15,7 @@ enum dpms {
>  }
>
>  void ddk750_set_dpms(enum dpms state);
> -void sm750_set_power_mode(unsigned int powerMode);
> +void sm750_set_power_mode(unsigned int power_mode);

This looks suspicious.  You shouldn't be updating only the prototype
without updating the definition as well.

julia

>  void sm750_set_current_gate(unsigned int gate);
>
>  /*
> --
> 2.17.1
>
> --
> You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to outreachy-kernel+unsubscribe@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/20191018020112.22226-1-jamal.k.shareef%40gmail.com.
>


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

* Re: [Outreachy kernel] [PATCH] staging: sm750fb: Edit CamelCase in ddk750_power.h
  2019-10-18  6:30 ` [Outreachy kernel] " Julia Lawall
@ 2019-10-20 22:11   ` Jamal Shareef
  0 siblings, 0 replies; 3+ messages in thread
From: Jamal Shareef @ 2019-10-20 22:11 UTC (permalink / raw)
  To: Julia Lawall; +Cc: outreachy-kernel, sudipm.mukherjee, teddy.wang, gregkh

On Fri, Oct 18, 2019 at 08:30:01AM +0200, Julia Lawall wrote:
> You don't need to put the name of the file in the subject line.  One can
> see that easily from the diffstat information.
> 
> On Thu, 17 Oct 2019, Jamal Shareef wrote:
> 
> > Removes instances of CamelCase. Issue found by checkpatch.
> >
> > Signed-off-by: Jamal Shareef <jamal.k.shareef@gmail.com>
> > ---
> >  drivers/staging/sm750fb/ddk750_power.h | 10 +++++-----
> >  1 file changed, 5 insertions(+), 5 deletions(-)
> >
> > diff --git a/drivers/staging/sm750fb/ddk750_power.h b/drivers/staging/sm750fb/ddk750_power.h
> > index 7002567a47d2..cd892f2b717f 100644
> > --- a/drivers/staging/sm750fb/ddk750_power.h
> > +++ b/drivers/staging/sm750fb/ddk750_power.h
> > @@ -3,10 +3,10 @@
> >  #define DDK750_POWER_H__
> >
> >  enum dpms {
> > -	crtDPMS_ON = 0x0,
> > -	crtDPMS_STANDBY = 0x1,
> > -	crtDPMS_SUSPEND = 0x2,
> > -	crtDPMS_OFF = 0x3,
> > +	crt_DPMS_ON = 0x0,
> > +	crt_DPMS_STANDBY = 0x1,
> > +	crt_DPMS_SUSPEND = 0x2,
> > +	crt_DPMS_OFF = 0x3,
> >  };
> >
> >  #define set_DAC(off) {							\
> > @@ -15,7 +15,7 @@ enum dpms {
> >  }
> >
> >  void ddk750_set_dpms(enum dpms state);
> > -void sm750_set_power_mode(unsigned int powerMode);
> > +void sm750_set_power_mode(unsigned int power_mode);
> 
> This looks suspicious.  You shouldn't be updating only the prototype
> without updating the definition as well.
> 
> julia
> 

A grep for these function names doesn't return any other hits. It does
look suspicious however. This enum is used by other function but not by
use of the enum labels themselves initially.

Jamal
> >  void sm750_set_current_gate(unsigned int gate);
> >
> >  /*
> > --
> > 2.17.1
> >
> > --
> > You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
> > To unsubscribe from this group and stop receiving emails from it, send an email to outreachy-kernel+unsubscribe@googlegroups.com.
> > To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/20191018020112.22226-1-jamal.k.shareef%40gmail.com.
> >


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

end of thread, other threads:[~2019-10-20 22:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-18  2:01 [PATCH] staging: sm750fb: Edit CamelCase in ddk750_power.h Jamal Shareef
2019-10-18  6:30 ` [Outreachy kernel] " Julia Lawall
2019-10-20 22:11   ` Jamal Shareef

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.