Changeset 111 for trunk/am29f040b.c


Ignore:
Timestamp:
May 23, 2007 7:20:56 PM (6 years ago)
Author:
stepan
Message:

Original v2 revision: 2689

big cosmetic offensive on flashrom. (trivial)

  • Give decent names to virt_addr and virt_addr_2
  • add some comments
  • move virtual addresses to the end of the struct, so they dont mess up the initializer.

Signed-off-by: Stefan Reinauer <stepan@…>
Acked-by: Stefan Reinauer <stepan@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/am29f040b.c

    r97 r111  
    7676int probe_29f040b(struct flashchip *flash) 
    7777{ 
    78         volatile uint8_t *bios = flash->virt_addr; 
     78        volatile uint8_t *bios = flash->virtual_memory; 
    7979        uint8_t id1, id2; 
    8080 
     
    9999int erase_29f040b(struct flashchip *flash) 
    100100{ 
    101         volatile uint8_t *bios = flash->virt_addr; 
     101        volatile uint8_t *bios = flash->virtual_memory; 
    102102 
    103103        *(bios + 0x555) = 0xAA; 
     
    119119        int total_size = flash->total_size * 1024; 
    120120        int page_size = flash->page_size; 
    121         volatile uint8_t *bios = flash->virt_addr; 
     121        volatile uint8_t *bios = flash->virtual_memory; 
    122122 
    123123        printf("Programming page "); 
Note: See TracChangeset for help on using the changeset viewer.