Skip to contentSkip to conversation

Staging: sm750fb: fix switch-case

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

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

PATCH v2 3/5 Staging: sm750fb: fix switch-case

Remove indentation in switch code. Problem foudn using checkpatch.pl
ERROR: switch and case should be at the same indent

---
Changes in v2:
-Fix commit message

 drivers/staging/sm750fb/ddk750_chip.c | 30 +++++++++++++++---------------
 1 file changed, 15 insertions(+), 15 deletions(-)
drivers/staging/sm750fb/ddk750_chip.c +15 -15
index 5020280..0b6baae 100644
@@ -154,21 +154,21 @@ void setMemoryClock(unsigned int frequency)
 
 	/* Set the corresponding divisor in the register. */
 	ulReg = PEEK32(CURRENT_GATE);
-	switch(divisor) {
-            default:
-            case 1:
-                ulReg = FIELD_SET(ulReg, CURRENT_GATE, M2XCLK, DIV_1);
-                break;
-            case 2:
-                ulReg = FIELD_SET(ulReg, CURRENT_GATE, M2XCLK, DIV_2);
-                break;
-            case 3:
-                ulReg = FIELD_SET(ulReg, CURRENT_GATE, M2XCLK, DIV_3);
-                break;
-            case 4:
-                ulReg = FIELD_SET(ulReg, CURRENT_GATE, M2XCLK, DIV_4);
-                break;
-        }
+	switch (divisor) {
+	default:
+	case 1:
+		ulReg = FIELD_SET(ulReg, CURRENT_GATE, M2XCLK, DIV_1);
+		break;
+	case 2:
+		ulReg = FIELD_SET(ulReg, CURRENT_GATE, M2XCLK, DIV_2);
+		break;
+	case 3:
+		ulReg = FIELD_SET(ulReg, CURRENT_GATE, M2XCLK, DIV_3);
+		break;
+	case 4:
+		ulReg = FIELD_SET(ulReg, CURRENT_GATE, M2XCLK, DIV_4);
+		break;
+	}
 
         setCurrentGate(ulReg);
     }
Signature · 1 line
1.9.1