From 79e6757d269b91ee759bd569df7093225f4f3715 Mon Sep 17 00:00:00 2001 From: Carl-Daniel Hailfinger Date: Wed, 13 Oct 2010 21:49:30 +0000 Subject: 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. Corresponding to flashrom svn r1210. Signed-off-by: Carl-Daniel Hailfinger Acked-by: Uwe Hermann Tested-by: Maciej Pijanka Tested-by: Idwer Vollering Acked-by: Idwer Vollering Tested-by: Sean Nelson Acked-by: Sean Nelson --- sst49lfxxxc.c | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'sst49lfxxxc.c') diff --git a/sst49lfxxxc.c b/sst49lfxxxc.c index c682be3..046b9f3 100644 --- a/sst49lfxxxc.c +++ b/sst49lfxxxc.c @@ -75,15 +75,3 @@ int erase_sector_49lfxxxc(struct flashchip *flash, unsigned int address, unsigne } return 0; } - -int write_49lfxxxc(struct flashchip *flash, uint8_t *buf) -{ - chipaddr bios = flash->virtual_memory; - - write_lockbits_49lfxxxc(flash, 0); - write_page_82802ab(flash, buf, 0, flash->total_size * 1024); - - chip_writeb(0xFF, bios); - - return 0; -} -- cgit v1.1