Commit c107243b authored by Helen Fornazier's avatar Helen Fornazier Committed by Greg Kroah-Hartman

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: default avatarHelen Fornazier <helen.fornazier@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 82736d22
...@@ -150,7 +150,7 @@ void setMemoryClock(unsigned int frequency) ...@@ -150,7 +150,7 @@ void setMemoryClock(unsigned int frequency)
/* Set the corresponding divisor in the register. */ /* Set the corresponding divisor in the register. */
ulReg = PEEK32(CURRENT_GATE); ulReg = PEEK32(CURRENT_GATE);
switch(divisor) { switch (divisor) {
default: default:
case 1: case 1:
ulReg = FIELD_SET(ulReg, CURRENT_GATE, M2XCLK, DIV_1); ulReg = FIELD_SET(ulReg, CURRENT_GATE, M2XCLK, DIV_1);
...@@ -198,7 +198,7 @@ void setMasterClock(unsigned int frequency) ...@@ -198,7 +198,7 @@ void setMasterClock(unsigned int frequency)
/* Set the corresponding divisor in the register. */ /* Set the corresponding divisor in the register. */
ulReg = PEEK32(CURRENT_GATE); ulReg = PEEK32(CURRENT_GATE);
switch(divisor) { switch (divisor) {
default: default:
case 3: case 3:
ulReg = FIELD_SET(ulReg, CURRENT_GATE, MCLK, DIV_3); ulReg = FIELD_SET(ulReg, CURRENT_GATE, MCLK, DIV_3);
...@@ -235,7 +235,7 @@ unsigned int ddk750_getVMSize(void) ...@@ -235,7 +235,7 @@ unsigned int ddk750_getVMSize(void)
/* get frame buffer size from GPIO */ /* get frame buffer size from GPIO */
reg = FIELD_GET(PEEK32(MISC_CTRL),MISC_CTRL,LOCALMEM_SIZE); 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_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_16M: data = MB(16); break; /* 16 Mega byte */
case MISC_CTRL_LOCALMEM_SIZE_32M: data = MB(32); break; /* 32 Mega byte */ case MISC_CTRL_LOCALMEM_SIZE_32M: data = MB(32); break; /* 32 Mega byte */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment