mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-19 05:31:32 +00:00
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:
parent
402ba1e3a0
commit
5928b9a865
8 changed files with 16 additions and 15 deletions
|
@ -39,7 +39,7 @@ void spl_spi_load_image(void)
|
|||
|
||||
/* Load u-boot, mkimage header is 64 bytes. */
|
||||
spi_flash_read(flash, CONFIG_SYS_SPI_U_BOOT_OFFS, 0x40,
|
||||
(void *) header);
|
||||
(void *)header);
|
||||
spl_parse_image_header(header);
|
||||
spi_flash_read(flash, CONFIG_SYS_SPI_U_BOOT_OFFS,
|
||||
spl_image.size, (void *)spl_image.load_addr);
|
||||
|
|
|
@ -166,9 +166,10 @@ struct spi_flash *spi_flash_probe_stmicro(struct spi_slave *spi, u8 *idcode)
|
|||
idcode[0] = 0x20;
|
||||
idcode[1] = 0x20;
|
||||
idcode[2] = idcode[3] + 1;
|
||||
} else
|
||||
} else {
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
||||
id = ((idcode[1] << 8) | idcode[2]);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue