Skip to contentSkip to conversation

Staging: sm750fb: Fix switch-case indent

PATCH New Amitoj Kaur Chawla 1 participant 1 message Mar 23, 2015

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

PATCH 1/1 Staging: sm750fb: Fix switch-case indent

Fix indentation in switch-case by using tabs. Problem found using checkpatch.pl
ERROR: switch and case should be at the same indent

---
 drivers/staging/sm750fb/ddk750_chip.c | 43 +++++++++++++++++------------------
 1 file changed, 21 insertions(+), 22 deletions(-)
drivers/staging/sm750fb/ddk750_chip.c +21 -22
index 3ac6478..717ca18 100644
@@ -196,30 +196,29 @@ void setMasterClock(unsigned int frequency)
 		if (frequency > MHz(190))
 			frequency = MHz(190);
 
-	/* Calculate the divisor */
-	divisor = (unsigned int) roundedDiv(getChipClock(), frequency);
-
-	/* Set the corresponding divisor in the register. */
-	ulReg = PEEK32(CURRENT_GATE);
-	switch(divisor)
-        {
-            default:
-            case 3:
-                ulReg = FIELD_SET(ulReg, CURRENT_GATE, MCLK, DIV_3);
-                break;
-            case 4:
-                ulReg = FIELD_SET(ulReg, CURRENT_GATE, MCLK, DIV_4);
-                break;
-            case 6:
-                ulReg = FIELD_SET(ulReg, CURRENT_GATE, MCLK, DIV_6);
-                break;
-            case 8:
-                ulReg = FIELD_SET(ulReg, CURRENT_GATE, MCLK, DIV_8);
-                break;
-        }
+		/* Calculate the divisor */
+		divisor = (unsigned int) roundedDiv(getChipClock(), frequency);
+
+		/* Set the corresponding divisor in the register. */
+		ulReg = PEEK32(CURRENT_GATE);
+		switch (divisor) {
+		default:
+		case 3:
+			ulReg = FIELD_SET(ulReg, CURRENT_GATE, MCLK, DIV_3);
+			break;
+		case 4:
+			ulReg = FIELD_SET(ulReg, CURRENT_GATE, MCLK, DIV_4);
+			break;
+		case 6:
+			ulReg = FIELD_SET(ulReg, CURRENT_GATE, MCLK, DIV_6);
+			break;
+		case 8:
+			ulReg = FIELD_SET(ulReg, CURRENT_GATE, MCLK, DIV_8);
+			break;
+		}
 
 	setCurrentGate(ulReg);
-    }
+	}
 }
 
 
Signature · 1 line
1.9.1