Staging: sm750fb: Fix switch-case indent
Subsystems (2)
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
Signed-off-by Amitoj Kaur Chawla <[email protected]>
--- drivers/staging/sm750fb/ddk750_chip.c | 43 +++++++++++++++++------------------ 1 file changed, 21 insertions(+), 22 deletions(-)
drivers/staging/sm750fb/ddk750_chip.c +21 -22
@@ -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