From 0b7afe65fb83bece914bb314e2c707d6d4b7ec4c Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Sun, 1 Apr 2007 19:44:21 +0000 Subject: Coding style fixes Corresponding to flashrom svn r97 and coreboot v2 svn r2577. Signed-off-by: Uwe Hermann Acked-by: Uwe Hermann --- am29f040b.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'am29f040b.c') diff --git a/am29f040b.c b/am29f040b.c index 7b82331a1..ae9fb0728 100644 --- a/am29f040b.c +++ b/am29f040b.c @@ -54,9 +54,9 @@ static __inline__ int write_sector_29f040b(volatile uint8_t *bios, int i; for (i = 0; i < page_size; i++) { - if( (i & 0xfff) == 0xfff ) - printf("0x%08lx", (unsigned long) dst - - (unsigned long) bios); + if ((i & 0xfff) == 0xfff) + printf("0x%08lx", (unsigned long)dst - + (unsigned long)bios); *(bios + 0x555) = 0xAA; *(bios + 0x2AA) = 0x55; @@ -66,7 +66,7 @@ static __inline__ int write_sector_29f040b(volatile uint8_t *bios, /* wait for Toggle bit ready */ toggle_ready_jedec(bios); - if( (i & 0xfff) == 0xfff ) + if ((i & 0xfff) == 0xfff) printf("\b\b\b\b\b\b\b\b\b\b"); } @@ -116,8 +116,8 @@ int erase_29f040b(struct flashchip *flash) int write_29f040b(struct flashchip *flash, uint8_t *buf) { int i; - int total_size = flash->total_size * 1024, page_size = - flash->page_size; + int total_size = flash->total_size * 1024; + int page_size = flash->page_size; volatile uint8_t *bios = flash->virt_addr; printf("Programming page "); -- cgit v1.2.3