From 7e4968525d37d87e8b6f8b848e4f2f9696926237 Mon Sep 17 00:00:00 2001 From: Nico Huber Date: Tue, 11 May 2021 17:38:14 +0200 Subject: programmer: Smoothen register_spi_master() API It was impossible to register a const struct spi_master that would point to dynamically allocated `data`. Fix that so that we won't have to create more mutable globals. Change-Id: I0c753b3db050fb87d4bbe2301a7ead854f28456f Signed-off-by: Nico Huber Reviewed-on: https://review.coreboot.org/c/flashrom/+/54066 Tested-by: build bot (Jenkins) Reviewed-by: Anastasia Klimchuk Reviewed-by: Angel Pons --- usbblaster_spi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usbblaster_spi.c') diff --git a/usbblaster_spi.c b/usbblaster_spi.c index c92efe64..b652a3d5 100644 --- a/usbblaster_spi.c +++ b/usbblaster_spi.c @@ -232,7 +232,7 @@ int usbblaster_spi_init(void) free(usbblaster_data); return -1; } - register_spi_master(&spi_master_usbblaster); + register_spi_master(&spi_master_usbblaster, NULL); return 0; } -- cgit v1.2.3