From 9309bed2906440cfac1257135805fd82c5d8b7a8 Mon Sep 17 00:00:00 2001 From: Anastasia Klimchuk Date: Thu, 13 May 2021 12:28:47 +1000 Subject: programmer: Smoothen register_opaque_master() API It was impossible to register a const struct opaque_master that would point to dynamically allocated `data`. Fix that so that we won't have to create more mutable globals. BUG=b:185191942 TEST=builds Change-Id: Id3adb4cf04ae04dbe87ddb96f30871cb5f7c8ff0 Signed-off-by: Anastasia Klimchuk Reviewed-on: https://review.coreboot.org/c/flashrom/+/54170 Reviewed-by: Edward O'Callaghan Reviewed-by: Nico Huber Tested-by: build bot (Jenkins) --- linux_mtd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'linux_mtd.c') diff --git a/linux_mtd.c b/linux_mtd.c index 0f7ac7e6..aeaecce2 100644 --- a/linux_mtd.c +++ b/linux_mtd.c @@ -424,7 +424,7 @@ int linux_mtd_init(void) goto linux_mtd_init_exit; } - register_opaque_master(&programmer_linux_mtd); + register_opaque_master(&programmer_linux_mtd, NULL); ret = 0; linux_mtd_init_exit: -- cgit v1.2.3