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 --- mx29f002.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mx29f002.c') diff --git a/mx29f002.c b/mx29f002.c index 769e944..8535474 100644 --- a/mx29f002.c +++ b/mx29f002.c @@ -40,8 +40,8 @@ int probe_29f002(struct flashchip *flash) *(bios + 0x2AAA) = 0x55; *(bios + 0x5555) = 0x90; - id1 = *(volatile uint8_t *) bios; - id2 = *(volatile uint8_t *) (bios + 0x01); + id1 = *(volatile uint8_t *)bios; + id2 = *(volatile uint8_t *)(bios + 0x01); *bios = 0xF0; @@ -101,7 +101,7 @@ int write_29f002(struct flashchip *flash, uint8_t *buf) for (i = 0; i < total_size; i++) { /* write to the sector */ if ((i & 0xfff) == 0) - printf("address: 0x%08lx", (unsigned long) i); + printf("address: 0x%08lx", (unsigned long)i); *(bios + 0x5555) = 0xAA; *(bios + 0x2AAA) = 0x55; *(bios + 0x5555) = 0xA0; -- cgit v1.1