flashrom.c: Simplify read_erase_write_block()

Since erase_block() learned to handle potentially unaligned regions,
and read_erase_write_block() uses it internally, we don't have to
handle that inside the latter anymore. This allows a much simpler
implementation. Also change the name to write_block().

Change-Id: I46826951d8bd345957368da83f8d4e8b3b6c53b2
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.coreboot.org/c/flashrom-stable/+/72548
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
1 file changed