Staging: sm750fb: Remove spaces in front of lines
Subsystems (2)
PATCH v2 1/1 Staging: sm750fb: Remove spaces in front of lines
This patch fixes warning of spaces in front of lines by using tabs instead, in file ddk750_chip.c
Signed-off-by Amitoj Kaur Chawla <[email protected]>
---
Changes in v2:
- Make the commit message clearer.
drivers/staging/sm750fb/ddk750_chip.c | 38 +++++++++++++++++++---------------- 1 file changed, 21 insertions(+), 17 deletions(-)
drivers/staging/sm750fb/ddk750_chip.c +21 -17
@@ -110,23 +110,27 @@ void setChipClock(unsigned int frequency)return ;#endif -if (frequency !=0 ) { -/* -* Set up PLL, a structure to hold the value to be set in clocks. -*/ - pll.inputFreq =DEFAULT_INPUT_CLOCK ;/* Defined in CLOCK.H */ - pll.clockType =MXCLK_PLL ; - -/* -* Call calcPllValue() to fill up the other fields for PLL structure. -* Sometime, the chip cannot set up the exact clock required by User. -* Return value from calcPllValue() gives the actual possible clock. -*/ - ulActualMxClk =calcPllValue (frequency, &pll); - -/* Master Clock Control: MXCLK_PLL */ -POKE32 (MXCLK_PLL_CTRL ,formatPllReg (&pll)); - } +if (frequency !=0 ) { +/* +* Set up PLL, a structure to hold the value to be set in clocks. +*/ + pll.inputFreq =DEFAULT_INPUT_CLOCK ;/* Defined in CLOCK.H */ + pll.clockType =MXCLK_PLL ; + +/* +* Call calcPllValue() to fill up the other fields for PLL +* structure. +* Sometime, the chip cannot set up the exact clock required by +* User. +* Return value from calcPllValue() gives the actual possible +* clock. +*/ + + ulActualMxClk =calcPllValue (frequency, &pll); + +/* Master Clock Control: MXCLK_PLL */ +POKE32 (MXCLK_PLL_CTRL ,formatPllReg (&pll)); + } }
Signature · 1 line
1.9.1
Quoted 2 lines · Amitoj Kaur Chawla
This patch fixes warning of spaces in front of lines by using tabs instead, in file
ddk750_chip.c
You don't need to mention the file name. It is right below. Also, you can probably avoid "This patch". On the other hand, it would be nice to acknowledge that the warning comes from checkpatch.
You may want to check the following page, if you have not done so already:
http://kernelnewbies.org/PatchPhilosophy
julia
Quoted 68 lines
Signed-off-by Amitoj Kaur Chawla <[email protected]>---
Changes in v2:
- Make the commit message clearer.drivers/staging/sm750fb/ddk750_chip.c | 38 +++++++++++++++++++---------------- 1 file changed, 21 insertions(+), 17 deletions(-)drivers/staging/sm750fb/ddk750_chip.c +21
-17@@ -110,23 +110,27 @@ void setChipClock(unsigned int frequency)return ;#endif -if (frequency !=0 ) { -/* -* Set up PLL, a structure to hold the value to be set in clocks. -*/ - pll.inputFreq =DEFAULT_INPUT_CLOCK ;/* Defined in CLOCK.H */ - pll.clockType =MXCLK_PLL ; - -/* -* Call calcPllValue() to fill up the other fields for PLL structure. -* Sometime, the chip cannot set up the exact clock required by User. -* Return value from calcPllValue() gives the actual possible clock. -*/ - ulActualMxClk =calcPllValue (frequency, &pll); - -/* Master Clock Control: MXCLK_PLL */ -POKE32 (MXCLK_PLL_CTRL ,formatPllReg (&pll)); - } +if (frequency !=0 ) { +/* +* Set up PLL, a structure to hold the value to be set in clocks. +*/ + pll.inputFreq =DEFAULT_INPUT_CLOCK ;/* Defined in CLOCK.H */ + pll.clockType =MXCLK_PLL ; + +/* +* Call calcPllValue() to fill up the other fields for PLL +* structure. +* Sometime, the chip cannot set up the exact clock required by +* User. +* Return value from calcPllValue() gives the actual possible +* clock. +*/ + + ulActualMxClk =calcPllValue (frequency, &pll); + +/* Master Clock Control: MXCLK_PLL */ +POKE32 (MXCLK_PLL_CTRL ,formatPllReg (&pll)); + } }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/20150321193347.GA28575%40amitoj-Inspiron-3542. For more options, visit https://groups.google.com/d/optout.