summaryrefslogtreecommitdiff
path: root/util/flashrom/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
commit195237f2e1b42c144cb27fde0a6773b20c8cd01a (patch)
tree66bb1768241122933d135e5efeb84047443011da /util/flashrom/mx29f002.c
parent1a9c892d58c746aef0cb530481c214e63a6a6871 (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/mx29f002.c')
-rw-r--r--util/flashrom/mx29f002.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/util/flashrom/mx29f002.c b/util/flashrom/mx29f002.c
index 769e9440c5..8535474538 100644
--- a/util/flashrom/mx29f002.c
+++ b/util/flashrom/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;