Skip to contentSkip to conversation

Staging: sm750fb: Remove spaces in front of lines

PATCH In review Amitoj Kaur Chawla 3 participants 3 messages Mar 21, 2015 – Mar 23, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 Staging: sm750fb: Remove spaces in front of lines

Fixes checkpatch.pl warning by using tabs instead of spaces.
WARNING: please, no spaces at the start of a line

---
Changes in v3:
- Fixed commit message

 drivers/staging/sm750fb/ddk750_chip.c | 38 +++++++++++++++++++----------------
 1 file changed, 21 insertions(+), 17 deletions(-)
drivers/staging/sm750fb/ddk750_chip.c +21 -17
index 3ccf4a5..9105c0e 100644
@@ -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
#1 lore raw
Quoted 2 lines · Amitoj Kaur Chawla

Fixes checkpatch.pl warning by using tabs instead of spaces.
WARNING: please, no spaces at the start of a line

Better, thanks :)

julia

Quoted 68 lines

---
Changes in v3:
- Fixed commit message

 drivers/staging/sm750fb/ddk750_chip.c | 38 +++++++++++++++++++----------------
 1 file changed, 21 insertions(+), 17 deletions(-)
drivers/staging/sm750fb/ddk750_chip.c +21 -17
index 3ccf4a5..9105c0e 100644
@@ -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/20150321195235.GA28639%40amitoj-Inspiron-3542.
For more options, visit https://groups.google.com/d/optout.
maintainer
#2 lore raw
In reply to Amitoj Kaur Chawla
Quoted 41 lines · Amitoj Kaur Chawla

Fixes checkpatch.pl warning by using tabs instead of spaces.
WARNING: please, no spaces at the start of a line

---
Changes in v3:
- Fixed commit message

 drivers/staging/sm750fb/ddk750_chip.c | 38 +++++++++++++++++++----------------
 1 file changed, 21 insertions(+), 17 deletions(-)
drivers/staging/sm750fb/ddk750_chip.c +5 -17
index 3ccf4a5..9105c0e 100644
@@ -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 */

drivers/staging/sm750fb/ddk750_chip.c void setChipClock(unsigned int frequency) · line 127

Quoted 10 lines
drivers/staging/sm750fb/ddk750_chip.c +10 -0
+		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.
+		*/

You changed the way the comments were lined up :(