Staging: comedi: addi_apci_1564: Delete whitespace
PATCH v3 1/1 Staging: comedi: addi_apci_1564: Delete whitespace
Fix the checkpatch.pl WARNING: line over 80 characters
---
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(-)
drivers/staging/comedi/drivers/addi_apci_1564.c +6 -6
@@ -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; };
Signature · 1 line
1.9.1
Looks better :)
julia
Quoted 45 lines · Charlie Wong Super
Fix the checkpatch.pl WARNING: line over 80 characters
Signed-off-by Charlie Wong Super <[email protected]>---
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(-)drivers/staging/comedi/drivers/addi_apci_1564.c +6
-6@@ -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; };Signature · 8 lines
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 [email protected]. To post to this group, send email to [email protected]. 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.
Quoted 11 lines · Julia Lawall
Looks better :)
julia
Quoted 3 lines · Charlie Wong Super
Be happy, Thanks for your help!
I think I need to do much more, to be familar with this style! ^_^ charlie
Greg KH
maintainerQuoted 22 lines · Charlie Wong Super
Fix the checkpatch.pl WARNING: line over 80 characters
Signed-off-by Charlie Wong Super <[email protected]>---
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(-)drivers/staging/comedi/drivers/addi_apci_1564.c +0
-2@@ -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 */
drivers/staging/comedi/drivers/addi_apci_1564.c line 114
Quoted 10 lines
drivers/staging/comedi/drivers/addi_apci_1564.c +6
-4-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
Quoted 36 lines · Greg KH
Quoted 22 lines · Charlie Wong Super
Fix the checkpatch.pl WARNING: line over 80 characters
Signed-off-by Charlie Wong Super <[email protected]>---
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(-)drivers/staging/comedi/drivers/addi_apci_1564.c +0
-2@@ -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 */ drivers/staging/comedi/drivers/addi_apci_1564.c line 114
Quoted 10 lines
drivers/staging/comedi/drivers/addi_apci_1564.c +6
-4-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.
Quoted 3 lines
thanks,
greg k-h
ok, got it, I will do much more work!
Thanks for your review!
PATCH v4 1/1 Staging: comedi: addi_apci_1564: Delete a tap
In reply to Greg KHFrom: Charlie Wong Super <[email protected]>
Fix the checkpatch.pl WARNING: line over 80 characters
---
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(-)
drivers/staging/comedi/drivers/addi_apci_1564.c +6 -6
@@ -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; };
Signature · 1 line
1.9.1