summaryrefslogtreecommitdiffstats
path: root/dummyflasher.c
diff options
context:
space:
mode:
authorEdward O'Callaghan <quasisec@google.com>2022-08-12 14:34:49 +1000
committerAnastasia Klimchuk <aklm@chromium.org>2022-09-07 01:53:57 +0000
commit323973b4dd5898333fd536e2872b987ca94d56f9 (patch)
treef7504115ae5cab09a723e7aae7608a06270cf82a /dummyflasher.c
parent65c99b17b8bac66caecbf0dea716d80af0311dd7 (diff)
downloadflashrom-323973b4dd5898333fd536e2872b987ca94d56f9.tar.gz
flashrom-323973b4dd5898333fd536e2872b987ca94d56f9.tar.bz2
flashrom-323973b4dd5898333fd536e2872b987ca94d56f9.zip
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>
Diffstat (limited to 'dummyflasher.c')
-rw-r--r--dummyflasher.c5
1 files 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;
}