summaryrefslogtreecommitdiffstats
path: root/flash.h
diff options
context:
space:
mode:
authorStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>2011-05-28 02:37:14 +0000
committerStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>2011-05-28 02:37:14 +0000
commit355cbfdbef1fbd41b635a5b92195689fd4d3c0b1 (patch)
treebf90deeafdc4ff48c7778e0f48e716befa48cf7c /flash.h
parent0fbba98c27433c97f42936e9e16805089ce3a296 (diff)
downloadast2050-flashrom-355cbfdbef1fbd41b635a5b92195689fd4d3c0b1.zip
ast2050-flashrom-355cbfdbef1fbd41b635a5b92195689fd4d3c0b1.tar.gz
Small fixes
- missing spaces in code and output - improved documentation/naming/output - missing line breaks in spi probing functions Corresponding to flashrom svn r1321. Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Diffstat (limited to 'flash.h')
-rw-r--r--flash.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/flash.h b/flash.h
index 7086e01..5ce7e87 100644
--- a/flash.h
+++ b/flash.h
@@ -136,6 +136,8 @@ struct flashchip {
unsigned int size; /* Eraseblock size */
unsigned int count; /* Number of contiguous blocks with that size */
} eraseblocks[NUM_ERASEREGIONS];
+ /* a block_erase function should try to erase one block of size
+ * 'blocklen' at address 'blockaddr' and return 0 on success. */
int (*block_erase) (struct flashchip *flash, unsigned int blockaddr, unsigned int blocklen);
} block_erasers[NUM_ERASEFUNCTIONS];
OpenPOWER on IntegriCloud