All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/5] staging: greybus: address minor styling issues
@ 2018-11-03 11:56 Ioannis Valasakis
  2018-11-03 11:56 ` [PATCH v4 1/5] staging: greybus: align parameters to parentheses Ioannis Valasakis
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: Ioannis Valasakis @ 2018-11-03 11:56 UTC (permalink / raw)
  To: outreachy-kernel; +Cc: gregkh

Changed in v5:
	- Rebase the patchset onto gregkh's staging source tree
	- Decouple unrelevant patches to two separate commits

Ioannis Valasakis (5):
  staging: greybus: align parameters to parentheses
  staging: greybus: shorten comparison to NULL
  staging: greybus: insert blank line after struct
  staging: greybus correct SPDX License Identifier
  staging: greybus: align arguments with parentheses

 drivers/staging/greybus/control.h | 5 +++--
 drivers/staging/greybus/core.c    | 6 +++---
 2 files changed, 6 insertions(+), 5 deletions(-)

-- 
2.19.1


-- 
ta
ioannis



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

* [PATCH v4 1/5] staging: greybus: align parameters to parentheses
  2018-11-03 11:56 [PATCH v4 0/5] staging: greybus: address minor styling issues Ioannis Valasakis
@ 2018-11-03 11:56 ` Ioannis Valasakis
  2018-11-03 11:56 ` [PATCH v4 2/5] staging: greybus: shorten comparison to NULL Ioannis Valasakis
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 9+ messages in thread
From: Ioannis Valasakis @ 2018-11-03 11:56 UTC (permalink / raw)
  To: outreachy-kernel; +Cc: gregkh

Align parameters to the right side of the left parentheses
Reported by checkpatch.

Signed-off-by: Ioannis Valasakis <code@wizofe.uk>
---
 drivers/staging/greybus/core.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/greybus/core.c b/drivers/staging/greybus/core.c
index dafa430d176e..6b1f3a27fa9d 100644
--- a/drivers/staging/greybus/core.c
+++ b/drivers/staging/greybus/core.c
@@ -28,7 +28,7 @@ int greybus_disabled(void)
 EXPORT_SYMBOL_GPL(greybus_disabled);
 
 static bool greybus_match_one_id(struct gb_bundle *bundle,
-				     const struct greybus_bundle_id *id)
+				 const struct greybus_bundle_id *id)
 {
 	if ((id->match_flags & GREYBUS_ID_MATCH_VENDOR) &&
 	    (id->vendor != bundle->intf->vendor_id))
@@ -266,7 +266,7 @@ static int greybus_remove(struct device *dev)
 }
 
 int greybus_register_driver(struct greybus_driver *driver, struct module *owner,
-		const char *mod_name)
+			    const char *mod_name)
 {
 	int retval;
 
-- 
2.19.1


-- 
ta
ioannis



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

* [PATCH v4 2/5] staging: greybus: shorten comparison to NULL
  2018-11-03 11:56 [PATCH v4 0/5] staging: greybus: address minor styling issues Ioannis Valasakis
  2018-11-03 11:56 ` [PATCH v4 1/5] staging: greybus: align parameters to parentheses Ioannis Valasakis
@ 2018-11-03 11:56 ` Ioannis Valasakis
  2018-11-03 14:13   ` [Outreachy kernel] " Julia Lawall
  2018-11-03 11:56 ` [PATCH v4 3/5] staging: greybus: insert blank line after struct Ioannis Valasakis
                   ` (2 subsequent siblings)
  4 siblings, 1 reply; 9+ messages in thread
From: Ioannis Valasakis @ 2018-11-03 11:56 UTC (permalink / raw)
  To: outreachy-kernel; +Cc: gregkh

Shorten pointer NULL check by simple truth test
Reported by checkpatch.

Signed-off-by: Ioannis Valasakis <code@wizofe.uk>
---
 drivers/staging/greybus/core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/greybus/core.c b/drivers/staging/greybus/core.c
index 6b1f3a27fa9d..d6b0d49130c0 100644
--- a/drivers/staging/greybus/core.c
+++ b/drivers/staging/greybus/core.c
@@ -48,7 +48,7 @@ static bool greybus_match_one_id(struct gb_bundle *bundle,
 static const struct greybus_bundle_id *
 greybus_match_id(struct gb_bundle *bundle, const struct greybus_bundle_id *id)
 {
-	if (id == NULL)
+	if (!id)
 		return NULL;
 
 	for (; id->vendor || id->product || id->class || id->driver_info;
-- 
2.19.1


-- 
ta
ioannis



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

* [PATCH v4 3/5] staging: greybus: insert blank line after struct
  2018-11-03 11:56 [PATCH v4 0/5] staging: greybus: address minor styling issues Ioannis Valasakis
  2018-11-03 11:56 ` [PATCH v4 1/5] staging: greybus: align parameters to parentheses Ioannis Valasakis
  2018-11-03 11:56 ` [PATCH v4 2/5] staging: greybus: shorten comparison to NULL Ioannis Valasakis
@ 2018-11-03 11:56 ` Ioannis Valasakis
  2018-11-03 11:56 ` [PATCH v4 4/5] staging: greybus correct SPDX License Identifier Ioannis Valasakis
  2018-11-03 11:57 ` [PATCH v4 5/5] staging: greybus: align arguments with parentheses Ioannis Valasakis
  4 siblings, 0 replies; 9+ messages in thread
From: Ioannis Valasakis @ 2018-11-03 11:56 UTC (permalink / raw)
  To: outreachy-kernel; +Cc: gregkh

Insert a blank line after the struct declaration.
Reported by checkpatch.

Signed-off-by: Ioannis Valasakis <code@wizofe.uk>
---
 drivers/staging/greybus/control.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/staging/greybus/control.h b/drivers/staging/greybus/control.h
index 643ddb9e0f92..9c453e0b1b33 100644
--- a/drivers/staging/greybus/control.h
+++ b/drivers/staging/greybus/control.h
@@ -24,6 +24,7 @@ struct gb_control {
 	char *vendor_string;
 	char *product_string;
 };
+
 #define to_gb_control(d) container_of(d, struct gb_control, dev)
 
 struct gb_control *gb_control_create(struct gb_interface *intf);
-- 
2.19.1


-- 
ta
ioannis



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

* [PATCH v4 4/5] staging: greybus correct SPDX License Identifier
  2018-11-03 11:56 [PATCH v4 0/5] staging: greybus: address minor styling issues Ioannis Valasakis
                   ` (2 preceding siblings ...)
  2018-11-03 11:56 ` [PATCH v4 3/5] staging: greybus: insert blank line after struct Ioannis Valasakis
@ 2018-11-03 11:56 ` Ioannis Valasakis
  2018-11-03 11:57 ` [PATCH v4 5/5] staging: greybus: align arguments with parentheses Ioannis Valasakis
  4 siblings, 0 replies; 9+ messages in thread
From: Ioannis Valasakis @ 2018-11-03 11:56 UTC (permalink / raw)
  To: outreachy-kernel; +Cc: gregkh

Correct the SPDX License Identifiers by replacing the comment to C-style
comment. Reported by checkpatch.

Signed-off-by: Ioannis Valasakis <code@wizofe.uk>
---
 drivers/staging/greybus/control.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/greybus/control.h b/drivers/staging/greybus/control.h
index 9c453e0b1b33..ebb7a2ee17dc 100644
--- a/drivers/staging/greybus/control.h
+++ b/drivers/staging/greybus/control.h
@@ -1,4 +1,4 @@
-// SPDX-License-Identifier: GPL-2.0
+/* SPDX-License-Identifier: GPL-2.0 */
 /*
  * Greybus CPort control protocol
  *
-- 
2.19.1


-- 
ta
ioannis



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

* [PATCH v4 5/5] staging: greybus: align arguments with parentheses
  2018-11-03 11:56 [PATCH v4 0/5] staging: greybus: address minor styling issues Ioannis Valasakis
                   ` (3 preceding siblings ...)
  2018-11-03 11:56 ` [PATCH v4 4/5] staging: greybus correct SPDX License Identifier Ioannis Valasakis
@ 2018-11-03 11:57 ` Ioannis Valasakis
  4 siblings, 0 replies; 9+ messages in thread
From: Ioannis Valasakis @ 2018-11-03 11:57 UTC (permalink / raw)
  To: outreachy-kernel; +Cc: gregkh

Align arguments with the right side of the open left parentheses.
Reported by checkpatch.

Signed-off-by: Ioannis Valasakis <code@wizofe.uk>
---
 drivers/staging/greybus/control.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/greybus/control.h b/drivers/staging/greybus/control.h
index ebb7a2ee17dc..5a45d55349a1 100644
--- a/drivers/staging/greybus/control.h
+++ b/drivers/staging/greybus/control.h
@@ -41,7 +41,7 @@ int gb_control_get_bundle_versions(struct gb_control *control);
 int gb_control_connected_operation(struct gb_control *control, u16 cport_id);
 int gb_control_disconnected_operation(struct gb_control *control, u16 cport_id);
 int gb_control_disconnecting_operation(struct gb_control *control,
-					u16 cport_id);
+				       u16 cport_id);
 int gb_control_mode_switch_operation(struct gb_control *control);
 void gb_control_mode_switch_prepare(struct gb_control *control);
 void gb_control_mode_switch_complete(struct gb_control *control);
-- 
2.19.1


-- 
ta
ioannis



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

* Re: [Outreachy kernel] [PATCH v4 2/5] staging: greybus: shorten comparison to NULL
  2018-11-03 11:56 ` [PATCH v4 2/5] staging: greybus: shorten comparison to NULL Ioannis Valasakis
@ 2018-11-03 14:13   ` Julia Lawall
  2018-11-03 18:40     ` tungolcild
  0 siblings, 1 reply; 9+ messages in thread
From: Julia Lawall @ 2018-11-03 14:13 UTC (permalink / raw)
  To: Ioannis Valasakis; +Cc: outreachy-kernel, gregkh



On Sat, 3 Nov 2018, Ioannis Valasakis wrote:

> Shorten pointer NULL check by simple truth test
> Reported by checkpatch.
>
> Signed-off-by: Ioannis Valasakis <code@wizofe.uk>
> ---
>  drivers/staging/greybus/core.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/staging/greybus/core.c b/drivers/staging/greybus/core.c
> index 6b1f3a27fa9d..d6b0d49130c0 100644
> --- a/drivers/staging/greybus/core.c
> +++ b/drivers/staging/greybus/core.c
> @@ -48,7 +48,7 @@ static bool greybus_match_one_id(struct gb_bundle *bundle,
>  static const struct greybus_bundle_id *
>  greybus_match_id(struct gb_bundle *bundle, const struct greybus_bundle_id *id)
>  {
> -	if (id == NULL)
> +	if (!id)

This seems to have the right start and end now.

>  		return NULL;
>
>  	for (; id->vendor || id->product || id->class || id->driver_info;
> --
> 2.19.1
>
>
> --
> ta
> ioannis

You don't need to put anything down here.

julia

>
> --
> 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 post to this group, send email to outreachy-kernel@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/f4c8e02349e53545f542f02e453bf18f340ed897.1541246060.git.code%40wizofe.uk.
> For more options, visit https://groups.google.com/d/optout.
>


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

* Re: [Outreachy kernel] [PATCH v4 2/5] staging: greybus: shorten comparison to NULL
  2018-11-03 14:13   ` [Outreachy kernel] " Julia Lawall
@ 2018-11-03 18:40     ` tungolcild
  2018-11-03 19:02       ` Julia Lawall
  0 siblings, 1 reply; 9+ messages in thread
From: tungolcild @ 2018-11-03 18:40 UTC (permalink / raw)
  To: outreachy-kernel


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

On Saturday, November 3, 2018 at 2:13:49 PM UTC, Julia Lawall wrote:
>
>
>
> On Sat, 3 Nov 2018, Ioannis Valasakis wrote: 
>
> > Shorten pointer NULL check by simple truth test 
> > Reported by checkpatch. 
> > 
> > Signed-off-by: Ioannis Valasakis <co...@wizofe.uk <javascript:>> 
> > --- 
> >  drivers/staging/greybus/core.c | 2 +- 
> >  1 file changed, 1 insertion(+), 1 deletion(-) 
> > 
> > diff --git a/drivers/staging/greybus/core.c 
> b/drivers/staging/greybus/core.c 
> > index 6b1f3a27fa9d..d6b0d49130c0 100644 
> > --- a/drivers/staging/greybus/core.c 
> > +++ b/drivers/staging/greybus/core.c 
> > @@ -48,7 +48,7 @@ static bool greybus_match_one_id(struct gb_bundle 
> *bundle, 
> >  static const struct greybus_bundle_id * 
> >  greybus_match_id(struct gb_bundle *bundle, const struct 
> greybus_bundle_id *id) 
> >  { 
> > -        if (id == NULL) 
> > +        if (!id) 
>
> This seems to have the right start and end now. 
>
> >                  return NULL; 
> > 
> >          for (; id->vendor || id->product || id->class || 
> id->driver_info; 
> > -- 
> > 2.19.1 
> > 
> > 
> > -- 
> > ta 
> > ioannis 
>
> You don't need to put anything down here. 
>
> julia 
>
>
Can I leave it as it is or does my signature need to be removed in order to 
be approved? :) 
And if so, should I just send a new version just for this patch or for the 
whole patchset?
thanks!
 

> > 
> > -- 
> > 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-kern...@googlegroups.com <javascript:>. 
> > To post to this group, send email to outreach...@googlegroups.com 
> <javascript:>. 
> > To view this discussion on the web visit 
> https://groups.google.com/d/msgid/outreachy-kernel/f4c8e02349e53545f542f02e453bf18f340ed897.1541246060.git.code%40wizofe.uk. 
>
> > For more options, visit https://groups.google.com/d/optout. 
> > 
>

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

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

* Re: [Outreachy kernel] [PATCH v4 2/5] staging: greybus: shorten comparison to NULL
  2018-11-03 18:40     ` tungolcild
@ 2018-11-03 19:02       ` Julia Lawall
  0 siblings, 0 replies; 9+ messages in thread
From: Julia Lawall @ 2018-11-03 19:02 UTC (permalink / raw)
  To: tungolcild; +Cc: outreachy-kernel

[-- Attachment #1: Type: text/plain, Size: 2957 bytes --]



On Sat, 3 Nov 2018, tungolcild@gmail.com wrote:

> On Saturday, November 3, 2018 at 2:13:49 PM UTC, Julia Lawall wrote:
>
>
>       On Sat, 3 Nov 2018, Ioannis Valasakis wrote:
>
>       > Shorten pointer NULL check by simple truth test
>       > Reported by checkpatch.
>       >
>       > Signed-off-by: Ioannis Valasakis <co...@wizofe.uk>
>       > ---
>       >  drivers/staging/greybus/core.c | 2 +-
>       >  1 file changed, 1 insertion(+), 1 deletion(-)
>       >
>       > diff --git a/drivers/staging/greybus/core.c
>       b/drivers/staging/greybus/core.c
>       > index 6b1f3a27fa9d..d6b0d49130c0 100644
>       > --- a/drivers/staging/greybus/core.c
>       > +++ b/drivers/staging/greybus/core.c
>       > @@ -48,7 +48,7 @@ static bool greybus_match_one_id(struct
>       gb_bundle *bundle,
>       >  static const struct greybus_bundle_id *
>       >  greybus_match_id(struct gb_bundle *bundle, const struct
>       greybus_bundle_id *id)
>       >  {
>       > -        if (id == NULL)
>       > +        if (!id)
>
>       This seems to have the right start and end now.
>
>       >                  return NULL;
>       >
>       >          for (; id->vendor || id->product || id->class ||
>       id->driver_info;
>       > --
>       > 2.19.1
>       >
>       >
>       > --
>       > ta
>       > ioannis
>
>       You don't need to put anything down here.
>
>       julia
>
>
> Can I leave it as it is or does my signature need to be removed in order to
> be approved? :) 

I think it is ok, because diffs include line numbers, so it knows how many
lines to take into account, and ignores the rest.

julia


> And if so, should I just send a new version just for this patch or for the
> whole patchset?
> thanks!
>  
>       >
>       > --
>       > 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-kern...@googlegroups.com.
>       > To post to this group, send email to
>       outreach...@googlegroups.com.
>       > To view this discussion on the web visithttps://groups.google.com/d/msgid/outreachy-kernel/f4c8e02349e53545f542f02e
>       453bf18f340ed897.1541246060.git.code%40wizofe.uk.
>       > For more options, visit https://groups.google.com/d/optout.
>       >
>
> --
> 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 post to this group, send email to outreachy-kernel@googlegroups.com.
> To view this discussion on the web visithttps://groups.google.com/d/msgid/outreachy-kernel/9a45b0e8-7715-44b5-a3dc-
> 347277102d30%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>
>

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

end of thread, other threads:[~2018-11-03 19:02 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-03 11:56 [PATCH v4 0/5] staging: greybus: address minor styling issues Ioannis Valasakis
2018-11-03 11:56 ` [PATCH v4 1/5] staging: greybus: align parameters to parentheses Ioannis Valasakis
2018-11-03 11:56 ` [PATCH v4 2/5] staging: greybus: shorten comparison to NULL Ioannis Valasakis
2018-11-03 14:13   ` [Outreachy kernel] " Julia Lawall
2018-11-03 18:40     ` tungolcild
2018-11-03 19:02       ` Julia Lawall
2018-11-03 11:56 ` [PATCH v4 3/5] staging: greybus: insert blank line after struct Ioannis Valasakis
2018-11-03 11:56 ` [PATCH v4 4/5] staging: greybus correct SPDX License Identifier Ioannis Valasakis
2018-11-03 11:57 ` [PATCH v4 5/5] staging: greybus: align arguments with parentheses Ioannis Valasakis

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.