spi25.c: Rename spi_get_erasefn_from_opcode to spi25_get_erasefn_from_opcode

This function works only with spi25 chips

Change-Id: Ie054160b0fdd34bcb128285c6a047e3a3fa8be0c
Signed-off-by: Thomas Heijligen <thomas.heijligen@secunet.com>
Original-Reviewed-on: https://review.coreboot.org/c/flashrom/+/67716
Original-Reviewed-by: Thomas Heijligen <src@posteo.de>
Original-Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
Reviewed-on: https://review.coreboot.org/c/flashrom-stable/+/72541
Reviewed-by: Nico Huber <nico.h@gmx.de>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
diff --git a/spi25.c b/spi25.c
index be612c6..6f17481 100644
--- a/spi25.c
+++ b/spi25.c
@@ -603,7 +603,7 @@
 static const struct {
 	erasefunc_t *func;
 	uint8_t opcode;
-} function_opcode_list[] = {
+} spi25_function_opcode_list[] = {
 	{&spi_block_erase_20, 0x20},
 	{&spi_block_erase_21, 0x21},
 	{&spi_block_erase_50, 0x50},
@@ -621,12 +621,12 @@
 	{&spi_block_erase_dc, 0xdc},
 };
 
-erasefunc_t *spi_get_erasefn_from_opcode(uint8_t opcode)
+erasefunc_t *spi25_get_erasefn_from_opcode(uint8_t opcode)
 {
 	size_t i;
-	for (i = 0; i < ARRAY_SIZE(function_opcode_list); i++) {
-		if (function_opcode_list[i].opcode == opcode)
-			return function_opcode_list[i].func;
+	for (i = 0; i < ARRAY_SIZE(spi25_function_opcode_list); i++) {
+		if (spi25_function_opcode_list[i].opcode == opcode)
+			return spi25_function_opcode_list[i].func;
 	}
 	msg_cinfo("%s: unknown erase opcode (0x%02x). Please report "
 			  "this at flashrom-stable@flashrom.org\n", __func__, opcode);