From 323973b4dd5898333fd536e2872b987ca94d56f9 Mon Sep 17 00:00:00 2001 From: Edward O'Callaghan Date: Fri, 12 Aug 2022 14:34:49 +1000 Subject: [PATCH] dummyflasher.c: plumb programmer_cfg though get_params Modify the type signature of the programmer get_param helper functions to allow for the consumption of the programmer parameterisation string data. Change-Id: Ic5b35a7324b1c5a8ca9b8b16ee0b95036737ef47 Signed-off-by: Edward O'Callaghan Reviewed-on: https://review.coreboot.org/c/flashrom/+/66663 Tested-by: build bot (Jenkins) Reviewed-by: Anastasia Klimchuk Reviewed-by: Felix Singer --- dummyflasher.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dummyflasher.c b/dummyflasher.c index f27ad4647..bd9752401 100644 --- a/dummyflasher.c +++ b/dummyflasher.c @@ -948,7 +948,8 @@ static const struct opaque_master opaque_master_dummyflasher = { .erase = dummy_opaque_erase, }; -static int init_data(struct emu_data *data, enum chipbustype *dummy_buses_supported) +static int init_data(const struct programmer_cfg *cfg, + struct emu_data *data, enum chipbustype *dummy_buses_supported) { char *bustext = NULL; char *tmp = NULL; @@ -1354,7 +1355,7 @@ static int dummy_init(const struct programmer_cfg *cfg) msg_pspew("%s\n", __func__); enum chipbustype dummy_buses_supported; - if (init_data(data, &dummy_buses_supported)) { + if (init_data(cfg, data, &dummy_buses_supported)) { free(data); return 1; }