All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATH v3] Staging: comedi: addi_apci_1564: Delete whitespace
@ 2015-03-31  6:08 Charlie Wong Super
  2015-03-31  6:12 ` [Outreachy kernel] " Julia Lawall
  2015-04-01 15:37 ` Greg KH
  0 siblings, 2 replies; 6+ messages in thread
From: Charlie Wong Super @ 2015-03-31  6:08 UTC (permalink / raw)
  To: outreachy-kernel

Fix the checkpatch.pl WARNING: line over 80 characters

Signed-off-by: Charlie Wong Super <1213charlie@gmail.com>
---
Changes in v2:
	edit the commit message, make it clear!
Changes in v3:
	about the commit and patch style problem!
	
 drivers/staging/comedi/drivers/addi_apci_1564.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/drivers/staging/comedi/drivers/addi_apci_1564.c b/drivers/staging/comedi/drivers/addi_apci_1564.c
index c481c48..dd335e8 100644
--- a/drivers/staging/comedi/drivers/addi_apci_1564.c
+++ b/drivers/staging/comedi/drivers/addi_apci_1564.c
@@ -106,12 +106,12 @@
 #define APCI1564_COUNTER(x)			((x) * 0x20)
 
 struct apci1564_private {
-	unsigned long eeprom;		/* base address of EEPROM register */
-	unsigned long timer;		/* base address of 12-bit timer */
-	unsigned long counters;		/* base address of 32-bit counters */
-	unsigned int mode1;		/* riding-edge/high level channels */
-	unsigned int mode2;		/* falling-edge/low level channels */
-	unsigned int ctrl;		/* interrupt mode OR (edge) . AND (level) */
+	unsigned long eeprom;		/*base address of EEPROM register*/
+	unsigned long timer;		/*base address of 12-bit timer*/
+	unsigned long counters;		/*base address of 32-bit counters*/
+	unsigned int mode1;		/*riding-edge/high level channels*/
+	unsigned int mode2;		/*falling-edge/low level channels*/
+	unsigned int ctrl;		/*interrupt mode OR (edge).AND(level)*/
 	struct task_struct *tsk_current;
 };
 
-- 
1.9.1



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

* Re: [Outreachy kernel] [PATH v3] Staging: comedi: addi_apci_1564: Delete whitespace
  2015-03-31  6:08 [PATH v3] Staging: comedi: addi_apci_1564: Delete whitespace Charlie Wong Super
@ 2015-03-31  6:12 ` Julia Lawall
  2015-03-31  6:18   ` Charlie WONG Super
  2015-04-01 15:37 ` Greg KH
  1 sibling, 1 reply; 6+ messages in thread
From: Julia Lawall @ 2015-03-31  6:12 UTC (permalink / raw)
  To: Charlie Wong Super; +Cc: outreachy-kernel

Looks better :)

julia

On Tue, 31 Mar 2015, Charlie Wong Super wrote:

> Fix the checkpatch.pl WARNING: line over 80 characters
> 
> Signed-off-by: Charlie Wong Super <1213charlie@gmail.com>
> ---
> Changes in v2:
> 	edit the commit message, make it clear!
> Changes in v3:
> 	about the commit and patch style problem!
> 	
>  drivers/staging/comedi/drivers/addi_apci_1564.c | 12 ++++++------
>  1 file changed, 6 insertions(+), 6 deletions(-)
> 
> diff --git a/drivers/staging/comedi/drivers/addi_apci_1564.c b/drivers/staging/comedi/drivers/addi_apci_1564.c
> index c481c48..dd335e8 100644
> --- a/drivers/staging/comedi/drivers/addi_apci_1564.c
> +++ b/drivers/staging/comedi/drivers/addi_apci_1564.c
> @@ -106,12 +106,12 @@
>  #define APCI1564_COUNTER(x)			((x) * 0x20)
>  
>  struct apci1564_private {
> -	unsigned long eeprom;		/* base address of EEPROM register */
> -	unsigned long timer;		/* base address of 12-bit timer */
> -	unsigned long counters;		/* base address of 32-bit counters */
> -	unsigned int mode1;		/* riding-edge/high level channels */
> -	unsigned int mode2;		/* falling-edge/low level channels */
> -	unsigned int ctrl;		/* interrupt mode OR (edge) . AND (level) */
> +	unsigned long eeprom;		/*base address of EEPROM register*/
> +	unsigned long timer;		/*base address of 12-bit timer*/
> +	unsigned long counters;		/*base address of 32-bit counters*/
> +	unsigned int mode1;		/*riding-edge/high level channels*/
> +	unsigned int mode2;		/*falling-edge/low level channels*/
> +	unsigned int ctrl;		/*interrupt mode OR (edge).AND(level)*/
>  	struct task_struct *tsk_current;
>  };
>  
> -- 
> 1.9.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 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/20150331060813.GA23522%40ThinkPad.
> For more options, visit https://groups.google.com/d/optout.
> 


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

* Re: [Outreachy kernel] [PATH v3] Staging: comedi: addi_apci_1564: Delete whitespace
  2015-03-31  6:12 ` [Outreachy kernel] " Julia Lawall
@ 2015-03-31  6:18   ` Charlie WONG Super
  0 siblings, 0 replies; 6+ messages in thread
From: Charlie WONG Super @ 2015-03-31  6:18 UTC (permalink / raw)
  To: outreachy-kernel; +Cc: 1213charlie


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


On Tuesday, March 31, 2015 at 2:12:55 PM UTC+8, Julia Lawall wrote:
>
> Looks better :) 
>
> julia 
>
> On Tue, 31 Mar 2015, Charlie Wong Super wrote: 
>
>  
>>Be happy, Thanks for your help!
>>I think I need to do much more, to be familar with this style! ^_^ 
>>charlie

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

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

* Re: [Outreachy kernel] [PATH v3] Staging: comedi: addi_apci_1564: Delete whitespace
  2015-03-31  6:08 [PATH v3] Staging: comedi: addi_apci_1564: Delete whitespace Charlie Wong Super
  2015-03-31  6:12 ` [Outreachy kernel] " Julia Lawall
@ 2015-04-01 15:37 ` Greg KH
  2015-04-02  6:32   ` Charlie WONG Super
  2015-04-02 10:10   ` [PATCH v4] Staging: comedi: addi_apci_1564: Delete a tap Charlie WONG Super
  1 sibling, 2 replies; 6+ messages in thread
From: Greg KH @ 2015-04-01 15:37 UTC (permalink / raw)
  To: Charlie Wong Super; +Cc: outreachy-kernel

On Tue, Mar 31, 2015 at 02:08:13PM +0800, Charlie Wong Super wrote:
> Fix the checkpatch.pl WARNING: line over 80 characters
> 
> Signed-off-by: Charlie Wong Super <1213charlie@gmail.com>
> ---
> Changes in v2:
> 	edit the commit message, make it clear!
> Changes in v3:
> 	about the commit and patch style problem!
> 	
>  drivers/staging/comedi/drivers/addi_apci_1564.c | 12 ++++++------
>  1 file changed, 6 insertions(+), 6 deletions(-)
> 
> diff --git a/drivers/staging/comedi/drivers/addi_apci_1564.c b/drivers/staging/comedi/drivers/addi_apci_1564.c
> index c481c48..dd335e8 100644
> --- a/drivers/staging/comedi/drivers/addi_apci_1564.c
> +++ b/drivers/staging/comedi/drivers/addi_apci_1564.c
> @@ -106,12 +106,12 @@
>  #define APCI1564_COUNTER(x)			((x) * 0x20)
>  
>  struct apci1564_private {
> -	unsigned long eeprom;		/* base address of EEPROM register */
> -	unsigned long timer;		/* base address of 12-bit timer */
> -	unsigned long counters;		/* base address of 32-bit counters */
> -	unsigned int mode1;		/* riding-edge/high level channels */
> -	unsigned int mode2;		/* falling-edge/low level channels */
> -	unsigned int ctrl;		/* interrupt mode OR (edge) . AND (level) */
> +	unsigned long eeprom;		/*base address of EEPROM register*/
> +	unsigned long timer;		/*base address of 12-bit timer*/
> +	unsigned long counters;		/*base address of 32-bit counters*/
> +	unsigned int mode1;		/*riding-edge/high level channels*/
> +	unsigned int mode2;		/*falling-edge/low level channels*/
> +	unsigned int ctrl;		/*interrupt mode OR (edge).AND(level)*/

That makes the code look worse, sorry, we can't take this.  It's correct
to have ' ' in comments after and before the '*' character.

thanks,

greg k-h


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

* Re: [Outreachy kernel] [PATH v3] Staging: comedi: addi_apci_1564: Delete whitespace
  2015-04-01 15:37 ` Greg KH
@ 2015-04-02  6:32   ` Charlie WONG Super
  2015-04-02 10:10   ` [PATCH v4] Staging: comedi: addi_apci_1564: Delete a tap Charlie WONG Super
  1 sibling, 0 replies; 6+ messages in thread
From: Charlie WONG Super @ 2015-04-02  6:32 UTC (permalink / raw)
  To: Greg KH; +Cc: outreachy-kernel

On 2015年04月01日 23:37, Greg KH wrote:
> On Tue, Mar 31, 2015 at 02:08:13PM +0800, Charlie Wong Super wrote:
>> Fix the checkpatch.pl WARNING: line over 80 characters
>>
>> Signed-off-by: Charlie Wong Super <1213charlie@gmail.com>
>> ---
>> Changes in v2:
>> 	edit the commit message, make it clear!
>> Changes in v3:
>> 	about the commit and patch style problem!
>> 	
>>   drivers/staging/comedi/drivers/addi_apci_1564.c | 12 ++++++------
>>   1 file changed, 6 insertions(+), 6 deletions(-)
>>
>> diff --git a/drivers/staging/comedi/drivers/addi_apci_1564.c b/drivers/staging/comedi/drivers/addi_apci_1564.c
>> index c481c48..dd335e8 100644
>> --- a/drivers/staging/comedi/drivers/addi_apci_1564.c
>> +++ b/drivers/staging/comedi/drivers/addi_apci_1564.c
>> @@ -106,12 +106,12 @@
>>   #define APCI1564_COUNTER(x)			((x) * 0x20)
>>   
>>   struct apci1564_private {
>> -	unsigned long eeprom;		/* base address of EEPROM register */
>> -	unsigned long timer;		/* base address of 12-bit timer */
>> -	unsigned long counters;		/* base address of 32-bit counters */
>> -	unsigned int mode1;		/* riding-edge/high level channels */
>> -	unsigned int mode2;		/* falling-edge/low level channels */
>> -	unsigned int ctrl;		/* interrupt mode OR (edge) . AND (level) */
>> +	unsigned long eeprom;		/*base address of EEPROM register*/
>> +	unsigned long timer;		/*base address of 12-bit timer*/
>> +	unsigned long counters;		/*base address of 32-bit counters*/
>> +	unsigned int mode1;		/*riding-edge/high level channels*/
>> +	unsigned int mode2;		/*falling-edge/low level channels*/
>> +	unsigned int ctrl;		/*interrupt mode OR (edge).AND(level)*/
> That makes the code look worse, sorry, we can't take this.  It's correct
> to have ' ' in comments after and before the '*' character.
>
> thanks,
>
> greg k-h
ok, got it, I will do much more work!
Thanks for your review!


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

* [PATCH v4] Staging: comedi: addi_apci_1564: Delete a tap
  2015-04-01 15:37 ` Greg KH
  2015-04-02  6:32   ` Charlie WONG Super
@ 2015-04-02 10:10   ` Charlie WONG Super
  1 sibling, 0 replies; 6+ messages in thread
From: Charlie WONG Super @ 2015-04-02 10:10 UTC (permalink / raw)
  To: gregkh; +Cc: outreachy-kernel, Charlie Wong Super

From: Charlie Wong Super <1213charlie@gmail.com>

Fix the checkpatch.pl WARNING: line over 80 characters

Signed-off-by: Charlie Wong Super <1213charlie@gmail.com>
---
Changes in v2:
	-edit the commit message, make it clear
Changes in v3:
	-about the commit and patch style problem
Changes in v4:
	-delete a tap, keep the ' ' character before and after the * character

 drivers/staging/comedi/drivers/addi_apci_1564.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/drivers/staging/comedi/drivers/addi_apci_1564.c b/drivers/staging/comedi/drivers/addi_apci_1564.c
index c481c48..c1d0021 100644
--- a/drivers/staging/comedi/drivers/addi_apci_1564.c
+++ b/drivers/staging/comedi/drivers/addi_apci_1564.c
@@ -106,12 +106,12 @@
 #define APCI1564_COUNTER(x)			((x) * 0x20)
 
 struct apci1564_private {
-	unsigned long eeprom;		/* base address of EEPROM register */
-	unsigned long timer;		/* base address of 12-bit timer */
-	unsigned long counters;		/* base address of 32-bit counters */
-	unsigned int mode1;		/* riding-edge/high level channels */
-	unsigned int mode2;		/* falling-edge/low level channels */
-	unsigned int ctrl;		/* interrupt mode OR (edge) . AND (level) */
+	unsigned long eeprom;	/* base address of EEPROM register */
+	unsigned long timer;	/* base address of 12-bit timer */
+	unsigned long counters;	/* base address of 32-bit counters */
+	unsigned int mode1;	/* riding-edge/high level channels */
+	unsigned int mode2;	/* falling-edge/low level channels */
+	unsigned int ctrl;	/* interrupt mode OR (edge) . AND (level) */
 	struct task_struct *tsk_current;
 };
 
-- 
1.9.1



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

end of thread, other threads:[~2015-04-02 10:10 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-31  6:08 [PATH v3] Staging: comedi: addi_apci_1564: Delete whitespace Charlie Wong Super
2015-03-31  6:12 ` [Outreachy kernel] " Julia Lawall
2015-03-31  6:18   ` Charlie WONG Super
2015-04-01 15:37 ` Greg KH
2015-04-02  6:32   ` Charlie WONG Super
2015-04-02 10:10   ` [PATCH v4] Staging: comedi: addi_apci_1564: Delete a tap Charlie WONG Super

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.