aboutsummaryrefslogtreecommitdiff
path: root/util/flashrom/sst28sf040.c
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2007-05-09 10:17:44 +0000
committerUwe Hermann <uwe@hermann-uwe.de>2007-05-09 10:17:44 +0000
commitc7dc7cc196a4bd5ba1cfafc87b193b89ae01a470 (patch)
tree06360b19621400a94e7ea8fa8c4a33e33392197b /util/flashrom/sst28sf040.c
parent33d1af37ae58c34288ae5fad9879a2ea2b752620 (diff)
Fix coding style of flashrom by running indent on all files:
indent -npro -kr -i8 -ts8 -sob -l80 -ss -ncs *.[ch] Some minor fixups were required, and maybe a few more cosmetic changeѕ are needed. 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@2643 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/flashrom/sst28sf040.c')
-rw-r--r--util/flashrom/sst28sf040.c36
1 files changed, 18 insertions, 18 deletions
diff --git a/util/flashrom/sst28sf040.c b/util/flashrom/sst28sf040.c
index 3de991d0ce..7b3db15b18 100644
--- a/util/flashrom/sst28sf040.c
+++ b/util/flashrom/sst28sf040.c
@@ -43,13 +43,13 @@ static __inline__ void protect_28sf040(volatile uint8_t *bios)
/* ask compiler not to optimize this */
volatile uint8_t tmp;
- tmp = *(volatile uint8_t *) (bios + 0x1823);
- tmp = *(volatile uint8_t *) (bios + 0x1820);
- tmp = *(volatile uint8_t *) (bios + 0x1822);
- tmp = *(volatile uint8_t *) (bios + 0x0418);
- tmp = *(volatile uint8_t *) (bios + 0x041B);
- tmp = *(volatile uint8_t *) (bios + 0x0419);
- tmp = *(volatile uint8_t *) (bios + 0x040A);
+ tmp = *(volatile uint8_t *)(bios + 0x1823);
+ tmp = *(volatile uint8_t *)(bios + 0x1820);
+ tmp = *(volatile uint8_t *)(bios + 0x1822);
+ tmp = *(volatile uint8_t *)(bios + 0x0418);
+ tmp = *(volatile uint8_t *)(bios + 0x041B);
+ tmp = *(volatile uint8_t *)(bios + 0x0419);
+ tmp = *(volatile uint8_t *)(bios + 0x040A);
}
static __inline__ void unprotect_28sf040(volatile uint8_t *bios)
@@ -57,13 +57,13 @@ static __inline__ void unprotect_28sf040(volatile uint8_t *bios)
/* ask compiler not to optimize this */
volatile uint8_t tmp;
- tmp = *(volatile uint8_t *) (bios + 0x1823);
- tmp = *(volatile uint8_t *) (bios + 0x1820);
- tmp = *(volatile uint8_t *) (bios + 0x1822);
- tmp = *(volatile uint8_t *) (bios + 0x0418);
- tmp = *(volatile uint8_t *) (bios + 0x041B);
- tmp = *(volatile uint8_t *) (bios + 0x0419);
- tmp = *(volatile uint8_t *) (bios + 0x041A);
+ tmp = *(volatile uint8_t *)(bios + 0x1823);
+ tmp = *(volatile uint8_t *)(bios + 0x1820);
+ tmp = *(volatile uint8_t *)(bios + 0x1822);
+ tmp = *(volatile uint8_t *)(bios + 0x0418);
+ tmp = *(volatile uint8_t *)(bios + 0x041B);
+ tmp = *(volatile uint8_t *)(bios + 0x0419);
+ tmp = *(volatile uint8_t *)(bios + 0x041A);
}
static __inline__ int erase_sector_28sf040(volatile uint8_t *bios,
@@ -116,9 +116,9 @@ int probe_28sf040(struct flashchip *flash)
*bios = READ_ID;
myusec_delay(10);
- id1 = *(volatile uint8_t *) bios;
+ id1 = *(volatile uint8_t *)bios;
myusec_delay(10);
- id2 = *(volatile uint8_t *) (bios + 0x01);
+ id2 = *(volatile uint8_t *)(bios + 0x01);
*bios = RESET;
myusec_delay(10);
@@ -150,8 +150,8 @@ int erase_28sf040(struct flashchip *flash)
int write_28sf040(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;
unprotect_28sf040(bios);