staging: sm750fb: Remove space after paranthesis
Subsystems (2)
PATCH 1/1 staging: sm750fb: Remove space after paranthesis
Remove space after paranthesis '('. Problem found using checkpatch.pl
ERROR: space prohibited after that open parenthesis '('
--- drivers/staging/sm750fb/ddk750_chip.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/staging/sm750fb/ddk750_chip.c +3 -3
@@ -600,9 +600,9 @@ unsigned int formatPllReg(pll_value_t *pPLL)On returning a 32 bit number, the value can be applied to any PLL in the calling function. */ ulPllReg = -FIELD_SET (0 ,PANEL_PLL_CTRL ,BYPASS ,OFF ) - |FIELD_SET (0 ,PANEL_PLL_CTRL ,POWER ,ON ) - | FIELD_SET( 0, PANEL_PLL_CTRL, INPUT, OSC) +FIELD_SET (0 ,PANEL_PLL_CTRL ,BYPASS ,OFF ) + |FIELD_SET (0 ,PANEL_PLL_CTRL ,POWER ,ON ) + | FIELD_SET(0, PANEL_PLL_CTRL, INPUT, OSC)#ifndef VALIDATION_CHIP | FIELD_VALUE(0, PANEL_PLL_CTRL, POD, pPLL->POD)#endif
Signature · 1 line
1.9.1
Quoted 14 lines · Amitoj Kaur Chawla
Remove space after paranthesis '('. Problem found using checkpatch.pl
ERROR: space prohibited after that open parenthesis '('Signed-off-by Amitoj Kaur Chawla <[email protected]>--- drivers/staging/sm750fb/ddk750_chip.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)drivers/staging/sm750fb/ddk750_chip.c +0
-0
drivers/staging/sm750fb/ddk750_chip.c unsigned int formatPllReg(pll_value_t *pPLL) · line 605
Quoted 9 lines
drivers/staging/sm750fb/ddk750_chip.c +3
-3@@ -600,9 +600,9 @@ unsigned int formatPllReg(pll_value_t *pPLL)On returning a 32 bit number, the value can be applied to any PLL in the calling function. */ ulPllReg = -FIELD_SET (0 ,PANEL_PLL_CTRL ,BYPASS ,OFF ) - |FIELD_SET (0 ,PANEL_PLL_CTRL ,POWER ,ON ) - |FIELD_SET (0 ,PANEL_PLL_CTRL ,INPUT ,OSC ) +FIELD_SET (0 ,PANEL_PLL_CTRL ,BYPASS ,OFF ) + |FIELD_SET (0 ,PANEL_PLL_CTRL ,POWER ,ON ) + |FIELD_SET (0 ,PANEL_PLL_CTRL ,INPUT ,OSC )
This code still looks unpleasant. It would be better with an extra tab in front of the lines of the right hand side of the assignment, and possibly with the first FIELD_SET on the same line as ulPllReg. And there should uniformly be one space after the commas. This makes several changes, but since they are all related to the formatting of a single expression, they could all be in one patch.
julia
Quoted 13 lines
drivers/staging/sm750fb/ddk750_chip.c +0
-0#ifndef VALIDATION_CHIP | FIELD_VALUE(0, PANEL_PLL_CTRL, POD, pPLL->POD)#endif 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/20151004095542.GA7011%40amitoj-Inspiron-3542. For more options, visit https://groups.google.com/d/optout.
Quoted 13 lines · On Sunday 04 October 2015 12:14:00 Julia Lawall wrote:
Quoted 13 lines
drivers/staging/sm750fb/ddk750_chip.c +2
-3@@ -600,9 +600,9 @@ unsigned int formatPllReg(pll_value_t *pPLL)On returning a 32 bit number, the value can be applied to any PLL in the calling function. */ ulPllReg = -FIELD_SET (0 ,PANEL_PLL_CTRL ,BYPASS ,OFF ) - |FIELD_SET (0 ,PANEL_PLL_CTRL ,POWER ,ON ) - |FIELD_SET (0 ,PANEL_PLL_CTRL ,INPUT ,OSC ) +FIELD_SET (0 ,PANEL_PLL_CTRL ,BYPASS ,OFF ) + |FIELD_SET (0 ,PANEL_PLL_CTRL ,POWER ,ON )
Quoted 8 lines
drivers/staging/sm750fb/ddk750_chip.c unsigned int formatPllReg(pll_value_t *pPLL) · line 605
Quoted 1 line
drivers/staging/sm750fb/ddk750_chip.c +1
-0+ | FIELD_SET(0, PANEL_PLL_CTRL, INPUT, OSC)This code still looks unpleasant. It would be better with an extra tab in front of the lines of the right hand side of the assignment, and possibly with the first
FIELD_SETon the same line as ulPllReg. And there should uniformly be one space after the commas. This makes several changes, but since they are all related to the formatting of a single expression, they could all be in one patch.
I'm not sure about it now, but isn't the kernel coding style to put the operator at the end of the line in a multi-line statement like this? I mean
ulPllReg = FIELD_SET( 0, PANEL_PLL_CTRL, BYPASS, OFF) |
FIELD_SET( 0, PANEL_PLL_CTRL, POWER, ON) |
...
Arnd
Quoted 23 lines · Arnd Bergmann
Quoted 13 lines · On Sunday 04 October 2015 12:14:00 Julia Lawall wrote:
Quoted 13 lines
drivers/staging/sm750fb/ddk750_chip.c +2
-3@@ -600,9 +600,9 @@ unsigned int formatPllReg(pll_value_t *pPLL)On returning a 32 bit number, the value can be applied to any PLL in the calling function. */ ulPllReg = -FIELD_SET (0 ,PANEL_PLL_CTRL ,BYPASS ,OFF ) - |FIELD_SET (0 ,PANEL_PLL_CTRL ,POWER ,ON ) - |FIELD_SET (0 ,PANEL_PLL_CTRL ,INPUT ,OSC ) +FIELD_SET (0 ,PANEL_PLL_CTRL ,BYPASS ,OFF ) + |FIELD_SET (0 ,PANEL_PLL_CTRL ,POWER ,ON )Quoted 8 lines
drivers/staging/sm750fb/ddk750_chip.c unsigned int formatPllReg(pll_value_t *pPLL) · line 605
Quoted 1 line
drivers/staging/sm750fb/ddk750_chip.c +1
-0+ | FIELD_SET(0, PANEL_PLL_CTRL, INPUT, OSC)This code still looks unpleasant. It would be better with an extra tab in front of the lines of the right hand side of the assignment, and possibly with the first
FIELD_SETon the same line as ulPllReg. And there should uniformly be one space after the commas. This makes several changes, but since they are all related to the formatting of a single expression, they could all be in one patch.
Quoted 7 lines
I'm not sure about it now, but isn't the kernel coding style to put the operator at the end of the line in a multi-line statement like this? I mean
ulPllReg =
FIELD_SET( 0, PANEL_PLL_CTRL, BYPASS, OFF)|
FIELD_SET( 0, PANEL_PLL_CTRL, POWER, ON)|
...
It looks much better there.
julia
Quoted 10 lines
Arnd
--
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/725507103.bmWo1bzATP%40wuerfel.
For more options, visit https://groups.google.com/d/optout.