From 985ad5623f8c2695ffc07d4bdbacbf2d85d4c11a Mon Sep 17 00:00:00 2001 From: Edward O'Callaghan Date: Tue, 16 Aug 2022 11:48:40 +1000 Subject: tree/: Convert flashchip write 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: I80149de169464b204fb09f1424a86fc645b740fd Signed-off-by: Edward O'Callaghan Reviewed-on: https://review.coreboot.org/c/flashrom/+/66782 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/spi25.c') diff --git a/tests/spi25.c b/tests/spi25.c index 5cd84fb8..87295934 100644 --- a/tests/spi25.c +++ b/tests/spi25.c @@ -32,7 +32,7 @@ struct flashchip mock_chip = { .page_size = 256, .tested = TEST_BAD_PREW, .probe = PROBE_SPI_RDID, - .write = NULL, + .write = NO_WRITE_FUNC, }; /* -- cgit v1.2.3