sf: Fix code cleanups

- CHECK: Alignment should match open parenthesis
- trailing whitespace

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
This commit is contained in:
Jagannadha Sutradharudu Teki 2013-07-29 22:43:57 +05:30
parent 402ba1e3a0
commit 5928b9a865
8 changed files with 16 additions and 15 deletions

View File

@ -39,7 +39,7 @@ void spl_spi_load_image(void)
/* Load u-boot, mkimage header is 64 bytes. */ /* Load u-boot, mkimage header is 64 bytes. */
spi_flash_read(flash, CONFIG_SYS_SPI_U_BOOT_OFFS, 0x40, spi_flash_read(flash, CONFIG_SYS_SPI_U_BOOT_OFFS, 0x40,
(void *) header); (void *)header);
spl_parse_image_header(header); spl_parse_image_header(header);
spi_flash_read(flash, CONFIG_SYS_SPI_U_BOOT_OFFS, spi_flash_read(flash, CONFIG_SYS_SPI_U_BOOT_OFFS,
spl_image.size, (void *)spl_image.load_addr); spl_image.size, (void *)spl_image.load_addr);

View File

@ -166,9 +166,10 @@ struct spi_flash *spi_flash_probe_stmicro(struct spi_slave *spi, u8 *idcode)
idcode[0] = 0x20; idcode[0] = 0x20;
idcode[1] = 0x20; idcode[1] = 0x20;
idcode[2] = idcode[3] + 1; idcode[2] = idcode[3] + 1;
} else } else {
return NULL; return NULL;
} }
}
id = ((idcode[1] << 8) | idcode[2]); id = ((idcode[1] << 8) | idcode[2]);