summaryrefslogtreecommitdiffstats
path: root/m29f400bt.c
diff options
context:
space:
mode:
authorCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2010-10-13 21:49:30 +0000
committerCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2010-10-13 21:49:30 +0000
commit20050cb40fedf0dd3b8112da6920248c686d3972 (patch)
treed77c280e33ab45e549d2b7493eab7bf50da57d53 /m29f400bt.c
parentfe507f3b24e9bbae177147c5bf601268f2e3a52c (diff)
downloadflashrom-20050cb40fedf0dd3b8112da6920248c686d3972.zip
flashrom-20050cb40fedf0dd3b8112da6920248c686d3972.tar.gz
Refactor remaining write wrappers
Kill duplicated code. Annotate write functions with their chunk size. Mark Fujitsu MBM29F400BC and ST M29F400BB as untested because their write code no longer uses a broken layout. Tested-by: Maciej Pijanka <maciej.pijanka@gmail.com> Tested-by: Idwer Vollering <vidwer@gmail.com> Tested-by: Sean Nelson <audiohacked@gmail.com> Corresponding to flashrom svn r1210. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Idwer Vollering <vidwer@gmail.com> Acked-by: Sean Nelson <audiohacked@gmail.com>
Diffstat (limited to 'm29f400bt.c')
-rw-r--r--m29f400bt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/m29f400bt.c b/m29f400bt.c
index e990d9d..2bca04c 100644
--- a/m29f400bt.c
+++ b/m29f400bt.c
@@ -140,6 +140,7 @@ int block_erase_chip_m29f400bt(struct flashchip *flash, unsigned int address, un
return erase_m29f400bt(flash);
}
+/* chunksize is 1 */
int write_m29f400bt(struct flashchip *flash, uint8_t *buf)
{
return write_page_m29f400bt(flash, buf, 0, flash->total_size * 1024);
OpenPOWER on IntegriCloud