Staging: sm750fb: fix switch-case
Subsystems (2)
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
Signed-off-by Amitoj Kaur Chawla <[email protected]>
---
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
@@ -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