omap_gpmc: Reindent misindented switch statements

Whitespace-only change fixing indentation.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
Peter Maydell 2011-08-28 16:22:19 +00:00
parent 7c470ff1eb
commit 9ed3e1b183

View File

@ -196,22 +196,22 @@ static uint64_t omap_gpmc_read(void *opaque, target_phys_addr_t addr,
addr -= cs * 0x30; addr -= cs * 0x30;
f = s->cs_file + cs; f = s->cs_file + cs;
switch (addr) { switch (addr) {
case 0x60: /* GPMC_CONFIG1 */ case 0x60: /* GPMC_CONFIG1 */
return f->config[0]; return f->config[0];
case 0x64: /* GPMC_CONFIG2 */ case 0x64: /* GPMC_CONFIG2 */
return f->config[1]; return f->config[1];
case 0x68: /* GPMC_CONFIG3 */ case 0x68: /* GPMC_CONFIG3 */
return f->config[2]; return f->config[2];
case 0x6c: /* GPMC_CONFIG4 */ case 0x6c: /* GPMC_CONFIG4 */
return f->config[3]; return f->config[3];
case 0x70: /* GPMC_CONFIG5 */ case 0x70: /* GPMC_CONFIG5 */
return f->config[4]; return f->config[4];
case 0x74: /* GPMC_CONFIG6 */ case 0x74: /* GPMC_CONFIG6 */
return f->config[5]; return f->config[5];
case 0x78: /* GPMC_CONFIG7 */ case 0x78: /* GPMC_CONFIG7 */
return f->config[6]; return f->config[6];
case 0x84: /* GPMC_NAND_DATA */ case 0x84: /* GPMC_NAND_DATA */
return 0; return 0;
} }
break; break;
@ -311,38 +311,38 @@ static void omap_gpmc_write(void *opaque, target_phys_addr_t addr,
addr -= cs * 0x30; addr -= cs * 0x30;
f = s->cs_file + cs; f = s->cs_file + cs;
switch (addr) { switch (addr) {
case 0x60: /* GPMC_CONFIG1 */ case 0x60: /* GPMC_CONFIG1 */
f->config[0] = value & 0xffef3e13; f->config[0] = value & 0xffef3e13;
break; break;
case 0x64: /* GPMC_CONFIG2 */ case 0x64: /* GPMC_CONFIG2 */
f->config[1] = value & 0x001f1f8f; f->config[1] = value & 0x001f1f8f;
break; break;
case 0x68: /* GPMC_CONFIG3 */ case 0x68: /* GPMC_CONFIG3 */
f->config[2] = value & 0x001f1f8f; f->config[2] = value & 0x001f1f8f;
break; break;
case 0x6c: /* GPMC_CONFIG4 */ case 0x6c: /* GPMC_CONFIG4 */
f->config[3] = value & 0x1f8f1f8f; f->config[3] = value & 0x1f8f1f8f;
break; break;
case 0x70: /* GPMC_CONFIG5 */ case 0x70: /* GPMC_CONFIG5 */
f->config[4] = value & 0x0f1f1f1f; f->config[4] = value & 0x0f1f1f1f;
break; break;
case 0x74: /* GPMC_CONFIG6 */ case 0x74: /* GPMC_CONFIG6 */
f->config[5] = value & 0x00000fcf; f->config[5] = value & 0x00000fcf;
break; break;
case 0x78: /* GPMC_CONFIG7 */ case 0x78: /* GPMC_CONFIG7 */
if ((f->config[6] ^ value) & 0xf7f) { if ((f->config[6] ^ value) & 0xf7f) {
omap_gpmc_cs_unmap(s, cs); omap_gpmc_cs_unmap(s, cs);
f->config[6] = value & 0x00000f7f; f->config[6] = value & 0x00000f7f;
omap_gpmc_cs_map(s, cs); omap_gpmc_cs_map(s, cs);
} }
break; break;
case 0x7c: /* GPMC_NAND_COMMAND */ case 0x7c: /* GPMC_NAND_COMMAND */
case 0x80: /* GPMC_NAND_ADDRESS */ case 0x80: /* GPMC_NAND_ADDRESS */
case 0x84: /* GPMC_NAND_DATA */ case 0x84: /* GPMC_NAND_DATA */
break; break;
default: default:
goto bad_reg; goto bad_reg;
} }
break; break;