diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2007-04-01 19:44:21 +0000 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2007-04-01 19:44:21 +0000 |
commit | 195237f2e1b42c144cb27fde0a6773b20c8cd01a (patch) | |
tree | 66bb1768241122933d135e5efeb84047443011da /util/flashrom/sst49lf040.c | |
parent | 1a9c892d58c746aef0cb530481c214e63a6a6871 (diff) |
Coding style fixes (trivial).
Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2577 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/flashrom/sst49lf040.c')
-rw-r--r-- | util/flashrom/sst49lf040.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/util/flashrom/sst49lf040.c b/util/flashrom/sst49lf040.c index 36537f24de..0d31d8272e 100644 --- a/util/flashrom/sst49lf040.c +++ b/util/flashrom/sst49lf040.c @@ -31,16 +31,16 @@ int erase_49lf040(struct flashchip *flash) { - int i; - int total_size = flash->total_size * 1024; - int page_size = flash->page_size; - volatile uint8_t *bios = flash->virt_addr; + int i; + int total_size = flash->total_size * 1024; + int page_size = flash->page_size; + volatile uint8_t *bios = flash->virt_addr; - for (i = 0; i < total_size / page_size; i++) { + for (i = 0; i < total_size / page_size; i++) { /* Chip erase only works in parallel programming mode * for the 49lf040. Use sector-erase instead */ erase_sector_jedec(bios, i * page_size); - } + } return 0; } @@ -60,7 +60,7 @@ int write_49lf040(struct flashchip *flash, uint8_t *buf) /* write to the sector */ printf("%04d at address: 0x%08x ", i, i * page_size); - + write_sector_jedec(bios, buf + i * page_size, bios + i * page_size, page_size); |