1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-04-27 07:02:34 +02:00

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 <quasisec@google.com>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/66663
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Anastasia Klimchuk <aklm@chromium.org>
Reviewed-by: Felix Singer <felixsinger@posteo.net>
This commit is contained in:
Edward O'Callaghan 2022-08-12 14:34:49 +10:00 committed by Anastasia Klimchuk
parent 65c99b17b8
commit 323973b4dd

View File

@ -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;
}