mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-02 22:43:17 +02:00
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 <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Uwe Hermann <uwe@hermann-uwe.de> Tested-by: Maciej Pijanka <maciej.pijanka@gmail.com> Tested-by: Idwer Vollering <vidwer@gmail.com> Acked-by: Idwer Vollering <vidwer@gmail.com> Tested-by: Sean Nelson <audiohacked@gmail.com> Acked-by: Sean Nelson <audiohacked@gmail.com>
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user