flashrom.c: Wrap recursive select_erase_functions()

Rename the recursive function to select_erase_functions_rec() and handle
the first erase-function level in a separate function.

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