From 10e7a0ebd74db72f00b8fc1b741f411d5a49b92d Mon Sep 17 00:00:00 2001 From: Edward O'Callaghan Date: Mon, 15 Aug 2022 12:05:31 +1000 Subject: tree/: Convert flashchip probe func ptr to enumerate This forges the way for flashchips.c to be pure declarative data and lookup functions for dispatch to be pure. This means that the flashchips data could be extracted out to be agnostic data of the flashrom code and algorithms. TEST='R|W|E && --flash-name' on ARM, AMD & Intel DUT's. Change-Id: I00aaab9c83f305cd47e78c36d9c2867f2b73c396 Signed-off-by: Edward O'Callaghan Reviewed-on: https://review.coreboot.org/c/flashrom/+/66781 Tested-by: build bot (Jenkins) Reviewed-by: Nikolai Artemiev Reviewed-by: Felix Singer --- tests/spi25.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/spi25.c b/tests/spi25.c index f10191040..5cd84fb85 100644 --- a/tests/spi25.c +++ b/tests/spi25.c @@ -31,7 +31,7 @@ struct flashchip mock_chip = { .total_size = 0, .page_size = 256, .tested = TEST_BAD_PREW, - .probe = probe_spi_rdid, + .probe = PROBE_SPI_RDID, .write = NULL, }; -- cgit v1.2.3