commit | 3b9c86dca807b8940e4af74c42ee911d4c03530e | [log] [tgz] |
---|---|---|
author | Nico Huber <nico.h@gmx.de> | Sun Jan 15 22:58:06 2023 +0100 |
committer | Nico Huber <nico.h@gmx.de> | Tue Apr 04 10:12:02 2023 +0000 |
tree | ca9870bdd95c42ef2da7027a5fbd19066b938f51 | |
parent | b8e81051b451a993cb6c21a49b51dad5f096adad [diff] |
flashrom.c: Extract write loop into new write_range() erase_block() and write_block() use the same loop logic to decide what parts of a range need to be written. Move that into a new function, write_range(). Change-Id: I13637978c03419ef06fbf3d4e0640c4630c49964 Signed-off-by: Nico Huber <nico.h@gmx.de> Reviewed-on: https://review.coreboot.org/c/flashrom-stable/+/72549 Reviewed-by: Arthur Heymans <arthur@aheymans.xyz> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>