linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] staging: media: bcm2048: fix coding style error
@ 2014-11-15 19:43 Christian Resell
  2014-11-15 20:12 ` Konrad Zapalowicz
  0 siblings, 1 reply; 6+ messages in thread
From: Christian Resell @ 2014-11-15 19:43 UTC (permalink / raw)
  To: m.chehab
  Cc: gregkh, hans.verkuil, pali.rohar, pavel, fengguang.wu,
	yongjun_wei, askb23, luke.hart, linux-media, devel, linux-kernel

Simple style fix (checkpatch.pl: "space prohibited before that ','").
For the eudyptula challenge (http://eudyptula-challenge.org/).

Signed-off-by: Christian F. Resell <christian.resell@gmail.com>
---
diff --git a/drivers/staging/media/bcm2048/radio-bcm2048.c b/drivers/staging/media/bcm2048/radio-bcm2048.c
index 2bba370..bdc6854 100644
--- a/drivers/staging/media/bcm2048/radio-bcm2048.c
+++ b/drivers/staging/media/bcm2048/radio-bcm2048.c
@@ -2707,7 +2707,7 @@ static int __exit bcm2048_i2c_driver_remove(struct i2c_client *client)
  *	bcm2048_i2c_driver - i2c driver interface
  */
 static const struct i2c_device_id bcm2048_id[] = {
-	{ "bcm2048" , 0 },
+	{ "bcm2048", 0 },
 	{ },
 };
 MODULE_DEVICE_TABLE(i2c, bcm2048_id);

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

* Re: [PATCH] staging: media: bcm2048: fix coding style error
  2014-11-15 19:43 [PATCH] staging: media: bcm2048: fix coding style error Christian Resell
@ 2014-11-15 20:12 ` Konrad Zapalowicz
  2014-11-15 20:59   ` Pavel Machek
  0 siblings, 1 reply; 6+ messages in thread
From: Konrad Zapalowicz @ 2014-11-15 20:12 UTC (permalink / raw)
  To: Christian Resell
  Cc: m.chehab, devel, askb23, gregkh, linux-kernel, yongjun_wei,
	hans.verkuil, pavel, pali.rohar, fengguang.wu, linux-media

On 11/15, Christian Resell wrote:
> Simple style fix (checkpatch.pl: "space prohibited before that ','").
> For the eudyptula challenge (http://eudyptula-challenge.org/).

Nice, however we do not need the information about the 'eudyptula
challenge' in the commit message.

If you want to include extra information please do it after the '---'
line (just below the signed-off). You will find more details in the
SubmittingPatches (chapter 15) of the kernel documentation.

Thanks,
Konrad
 
> Signed-off-by: Christian F. Resell <christian.resell@gmail.com>
> ---
> diff --git a/drivers/staging/media/bcm2048/radio-bcm2048.c b/drivers/staging/media/bcm2048/radio-bcm2048.c
> index 2bba370..bdc6854 100644
> --- a/drivers/staging/media/bcm2048/radio-bcm2048.c
> +++ b/drivers/staging/media/bcm2048/radio-bcm2048.c
> @@ -2707,7 +2707,7 @@ static int __exit bcm2048_i2c_driver_remove(struct i2c_client *client)
>   *	bcm2048_i2c_driver - i2c driver interface
>   */
>  static const struct i2c_device_id bcm2048_id[] = {
> -	{ "bcm2048" , 0 },
> +	{ "bcm2048", 0 },
>  	{ },
>  };
>  MODULE_DEVICE_TABLE(i2c, bcm2048_id);
> _______________________________________________
> devel mailing list
> devel@linuxdriverproject.org
> http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

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

* Re: [PATCH] staging: media: bcm2048: fix coding style error
  2014-11-15 20:12 ` Konrad Zapalowicz
@ 2014-11-15 20:59   ` Pavel Machek
  2014-11-15 21:25     ` Greg KH
  2014-11-15 21:32     ` Konrad Zapalowicz
  0 siblings, 2 replies; 6+ messages in thread
From: Pavel Machek @ 2014-11-15 20:59 UTC (permalink / raw)
  To: Konrad Zapalowicz
  Cc: Christian Resell, m.chehab, devel, askb23, gregkh, linux-kernel,
	yongjun_wei, hans.verkuil, pali.rohar, fengguang.wu, linux-media

On Sat 2014-11-15 21:12:18, Konrad Zapalowicz wrote:
> On 11/15, Christian Resell wrote:
> > Simple style fix (checkpatch.pl: "space prohibited before that ','").
> > For the eudyptula challenge (http://eudyptula-challenge.org/).
> 
> Nice, however we do not need the information about the 'eudyptula
> challenge' in the commit message.
> 
> If you want to include extra information please do it after the '---'
> line (just below the signed-off). You will find more details in the
> SubmittingPatches (chapter 15) of the kernel documentation.

Greg is staging tree maintainer... And if single extra space is all
you can fix in the driver, perhaps it is not worth the patch?

									Pavel

> Thanks,
> Konrad
>  
> > Signed-off-by: Christian F. Resell <christian.resell@gmail.com>
> > ---
> > diff --git a/drivers/staging/media/bcm2048/radio-bcm2048.c b/drivers/staging/media/bcm2048/radio-bcm2048.c
> > index 2bba370..bdc6854 100644
> > --- a/drivers/staging/media/bcm2048/radio-bcm2048.c
> > +++ b/drivers/staging/media/bcm2048/radio-bcm2048.c
> > @@ -2707,7 +2707,7 @@ static int __exit bcm2048_i2c_driver_remove(struct i2c_client *client)
> >   *	bcm2048_i2c_driver - i2c driver interface
> >   */
> >  static const struct i2c_device_id bcm2048_id[] = {
> > -	{ "bcm2048" , 0 },
> > +	{ "bcm2048", 0 },
> >  	{ },
> >  };
> >  MODULE_DEVICE_TABLE(i2c, bcm2048_id);
> > _______________________________________________
> > devel mailing list
> > devel@linuxdriverproject.org
> > http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

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

* Re: [PATCH] staging: media: bcm2048: fix coding style error
  2014-11-15 20:59   ` Pavel Machek
@ 2014-11-15 21:25     ` Greg KH
  2014-11-16 10:20       ` Mauro Carvalho Chehab
  2014-11-15 21:32     ` Konrad Zapalowicz
  1 sibling, 1 reply; 6+ messages in thread
From: Greg KH @ 2014-11-15 21:25 UTC (permalink / raw)
  To: Pavel Machek
  Cc: Konrad Zapalowicz, Christian Resell, m.chehab, devel, askb23,
	linux-kernel, yongjun_wei, hans.verkuil, pali.rohar,
	fengguang.wu, linux-media

On Sat, Nov 15, 2014 at 09:59:34PM +0100, Pavel Machek wrote:
> On Sat 2014-11-15 21:12:18, Konrad Zapalowicz wrote:
> > On 11/15, Christian Resell wrote:
> > > Simple style fix (checkpatch.pl: "space prohibited before that ','").
> > > For the eudyptula challenge (http://eudyptula-challenge.org/).
> > 
> > Nice, however we do not need the information about the 'eudyptula
> > challenge' in the commit message.
> > 
> > If you want to include extra information please do it after the '---'
> > line (just below the signed-off). You will find more details in the
> > SubmittingPatches (chapter 15) of the kernel documentation.
> 
> Greg is staging tree maintainer... And if single extra space is all
> you can fix in the driver, perhaps it is not worth the patch?

I am not the maintainer of drivers/staging/media/ please look at
MAINTAINERS before you make statements like that.

And yes, one space fixes is just fine, that's why the code is in
staging.

greg k-h

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

* Re: [PATCH] staging: media: bcm2048: fix coding style error
  2014-11-15 20:59   ` Pavel Machek
  2014-11-15 21:25     ` Greg KH
@ 2014-11-15 21:32     ` Konrad Zapalowicz
  1 sibling, 0 replies; 6+ messages in thread
From: Konrad Zapalowicz @ 2014-11-15 21:32 UTC (permalink / raw)
  To: Pavel Machek
  Cc: Christian Resell, m.chehab, devel, askb23, gregkh, linux-kernel,
	yongjun_wei, hans.verkuil, pali.rohar, fengguang.wu, linux-media

On 11/15, Pavel Machek wrote:
> On Sat 2014-11-15 21:12:18, Konrad Zapalowicz wrote:
> > On 11/15, Christian Resell wrote:
> > > Simple style fix (checkpatch.pl: "space prohibited before that ','").
> > > For the eudyptula challenge (http://eudyptula-challenge.org/).
> > 
> > Nice, however we do not need the information about the 'eudyptula
> > challenge' in the commit message.
> > 
> > If you want to include extra information please do it after the '---'
> > line (just below the signed-off). You will find more details in the
> > SubmittingPatches (chapter 15) of the kernel documentation.
> 
> Greg is staging tree maintainer... And if single extra space is all
> you can fix in the driver, perhaps it is not worth the patch?

I think that every contribution, as long as it acctually fixes
something, is worth the patch. The beauty of the open source community
is that we do when we have time as much as we are able to do - totally
no stress.

You, Pavel, are more experienced however those who are not have to learn
somehow and one of the options is to start with something very simple.
Sometimes the 'simple' means oneliner however as long as it compiles, is
inline with the coding standard and in general is an improvement then it
is good.

Regards,
Konrad
 
> 									Pavel
> 
> > Thanks,
> > Konrad
> >  
> > > Signed-off-by: Christian F. Resell <christian.resell@gmail.com>
> > > ---
> > > diff --git a/drivers/staging/media/bcm2048/radio-bcm2048.c b/drivers/staging/media/bcm2048/radio-bcm2048.c
> > > index 2bba370..bdc6854 100644
> > > --- a/drivers/staging/media/bcm2048/radio-bcm2048.c
> > > +++ b/drivers/staging/media/bcm2048/radio-bcm2048.c
> > > @@ -2707,7 +2707,7 @@ static int __exit bcm2048_i2c_driver_remove(struct i2c_client *client)
> > >   *	bcm2048_i2c_driver - i2c driver interface
> > >   */
> > >  static const struct i2c_device_id bcm2048_id[] = {
> > > -	{ "bcm2048" , 0 },
> > > +	{ "bcm2048", 0 },
> > >  	{ },
> > >  };
> > >  MODULE_DEVICE_TABLE(i2c, bcm2048_id);
> > > _______________________________________________
> > > devel mailing list
> > > devel@linuxdriverproject.org
> > > http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
> 
> -- 
> (english) http://www.livejournal.com/~pavelmachek
> (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

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

* Re: [PATCH] staging: media: bcm2048: fix coding style error
  2014-11-15 21:25     ` Greg KH
@ 2014-11-16 10:20       ` Mauro Carvalho Chehab
  0 siblings, 0 replies; 6+ messages in thread
From: Mauro Carvalho Chehab @ 2014-11-16 10:20 UTC (permalink / raw)
  To: Greg KH
  Cc: Pavel Machek, Konrad Zapalowicz, Christian Resell, devel, askb23,
	linux-kernel, yongjun_wei, hans.verkuil, pali.rohar,
	fengguang.wu, linux-media

Em Sat, 15 Nov 2014 13:25:03 -0800
Greg KH <gregkh@linuxfoundation.org> escreveu:

> On Sat, Nov 15, 2014 at 09:59:34PM +0100, Pavel Machek wrote:
> > On Sat 2014-11-15 21:12:18, Konrad Zapalowicz wrote:
> > > On 11/15, Christian Resell wrote:
> > > > Simple style fix (checkpatch.pl: "space prohibited before that ','").
> > > > For the eudyptula challenge (http://eudyptula-challenge.org/).
> > > 
> > > Nice, however we do not need the information about the 'eudyptula
> > > challenge' in the commit message.
> > > 
> > > If you want to include extra information please do it after the '---'
> > > line (just below the signed-off). You will find more details in the
> > > SubmittingPatches (chapter 15) of the kernel documentation.
> > 
> > Greg is staging tree maintainer... And if single extra space is all
> > you can fix in the driver, perhaps it is not worth the patch?
> 
> I am not the maintainer of drivers/staging/media/ please look at
> MAINTAINERS before you make statements like that.
> 
> And yes, one space fixes is just fine, that's why the code is in
> staging.

Yes, space fixes is OK for staging.

I'll apply this patch, removing the line that comments about the challenge,
as we don't need to keep this information forever at the Kernel history.

Regards,
Mauro

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

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

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-15 19:43 [PATCH] staging: media: bcm2048: fix coding style error Christian Resell
2014-11-15 20:12 ` Konrad Zapalowicz
2014-11-15 20:59   ` Pavel Machek
2014-11-15 21:25     ` Greg KH
2014-11-16 10:20       ` Mauro Carvalho Chehab
2014-11-15 21:32     ` Konrad Zapalowicz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).