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 | 0b7afe65fb83bece914bb314e2c707d6d4b7ec4c (patch) | |
tree | 3dbee147f9d1e292cd914e216f77790c5a895345 /sst49lf040.c | |
parent | 3ad2518939fb496df4544c7876cf412597bb3b03 (diff) | |
download | flashrom-0b7afe65fb83bece914bb314e2c707d6d4b7ec4c.tar.gz flashrom-0b7afe65fb83bece914bb314e2c707d6d4b7ec4c.tar.bz2 flashrom-0b7afe65fb83bece914bb314e2c707d6d4b7ec4c.zip |
Coding style fixes
Corresponding to flashrom svn r97 and coreboot v2 svn r2577.
Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
Diffstat (limited to 'sst49lf040.c')
-rw-r--r-- | sst49lf040.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sst49lf040.c b/sst49lf040.c index 36537f24..0d31d827 100644 --- a/sst49lf040.c +++ b/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); |