summaryrefslogtreecommitdiffstats
path: root/mx29f002.c
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2007-04-01 19:44:21 +0000
committerUwe Hermann <uwe@hermann-uwe.de>2007-04-01 19:44:21 +0000
commit0b7afe65fb83bece914bb314e2c707d6d4b7ec4c (patch)
tree3dbee147f9d1e292cd914e216f77790c5a895345 /mx29f002.c
parent3ad2518939fb496df4544c7876cf412597bb3b03 (diff)
downloadast2050-flashrom-0b7afe65fb83bece914bb314e2c707d6d4b7ec4c.zip
ast2050-flashrom-0b7afe65fb83bece914bb314e2c707d6d4b7ec4c.tar.gz
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 'mx29f002.c')
-rw-r--r--mx29f002.c6
1 files changed, 3 insertions, 3 deletions
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;
OpenPOWER on IntegriCloud