summaryrefslogtreecommitdiffstats
path: root/atapromise.c
diff options
context:
space:
mode:
authorAnastasia Klimchuk <aklm@chromium.org>2021-05-21 09:40:58 +1000
committerEdward O'Callaghan <quasisec@chromium.org>2021-05-23 04:18:31 +0000
commit6a5db26e686d32165621a6839843639192a33102 (patch)
tree2566d9d58639d2115b9c9a2f26922cb6ed478880 /atapromise.c
parentdaa86b53012910428861330c8bf82ea3fe183796 (diff)
downloadflashrom-6a5db26e686d32165621a6839843639192a33102.tar.gz
flashrom-6a5db26e686d32165621a6839843639192a33102.tar.bz2
flashrom-6a5db26e686d32165621a6839843639192a33102.zip
programmer: Smoothen register_par_master API
It was impossible to register a const struct par_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: I95bc92f6c54c5bcdac1c522ca87054aaffed0f40 Signed-off-by: Anastasia Klimchuk <aklm@chromium.org> Reviewed-on: https://review.coreboot.org/c/flashrom/+/54169 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
Diffstat (limited to 'atapromise.c')
-rw-r--r--atapromise.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/atapromise.c b/atapromise.c
index ab34a1ec8..f32bdb498 100644
--- a/atapromise.c
+++ b/atapromise.c
@@ -140,7 +140,7 @@ int atapromise_init(void)
}
max_rom_decode.parallel = rom_size;
- register_par_master(&par_master_atapromise, BUS_PARALLEL);
+ register_par_master(&par_master_atapromise, BUS_PARALLEL, NULL);
msg_pwarn("Do not use this device as a generic programmer. It will leave anything outside\n"
"the first %zu kB of the flash chip in an undefined state. It works fine for the\n"