aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHelen Fornazier <[email protected]>2015-03-26 14:09:17 -0300
committerGreg Kroah-Hartman <[email protected]>2015-03-27 00:10:40 +0100
commitc107243b09a62d17956362b6780c07cd5bbb071c (patch)
treee1bc6d24c045942d5a7d2a3dd6488385ae504c69
parent82736d2244a059962bf9efec3338036ae9464986 (diff)
staging: sm750fb: Add space before switch statement
This patch fixes the checkpatch.pl warnings: ERROR: space required before the open parenthesis '(' + switch(divisor) { ERROR: space required before the open parenthesis '(' + switch(divisor) { ERROR: space required before the open parenthesis '(' + switch(reg) { Signed-off-by: Helen Fornazier <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
-rw-r--r--drivers/staging/sm750fb/ddk750_chip.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/staging/sm750fb/ddk750_chip.c b/drivers/staging/sm750fb/ddk750_chip.c
index 49e26bd0f6ce..3913aa4a9068 100644
--- a/drivers/staging/sm750fb/ddk750_chip.c
+++ b/drivers/staging/sm750fb/ddk750_chip.c
@@ -150,7 +150,7 @@ void setMemoryClock(unsigned int frequency)
/* Set the corresponding divisor in the register. */
ulReg = PEEK32(CURRENT_GATE);
- switch(divisor) {
+ switch (divisor) {
default:
case 1:
ulReg = FIELD_SET(ulReg, CURRENT_GATE, M2XCLK, DIV_1);
@@ -198,7 +198,7 @@ void setMasterClock(unsigned int frequency)
/* Set the corresponding divisor in the register. */
ulReg = PEEK32(CURRENT_GATE);
- switch(divisor) {
+ switch (divisor) {
default:
case 3:
ulReg = FIELD_SET(ulReg, CURRENT_GATE, MCLK, DIV_3);
@@ -235,7 +235,7 @@ unsigned int ddk750_getVMSize(void)
/* get frame buffer size from GPIO */
reg = FIELD_GET(PEEK32(MISC_CTRL),MISC_CTRL,LOCALMEM_SIZE);
- switch(reg) {
+ switch (reg) {
case MISC_CTRL_LOCALMEM_SIZE_8M: data = MB(8); break; /* 8 Mega byte */
case MISC_CTRL_LOCALMEM_SIZE_16M: data = MB(16); break; /* 16 Mega byte */
case MISC_CTRL_LOCALMEM_SIZE_32M: data = MB(32); break; /* 32 Mega byte */