internal: Pass programmer context down into chipset enables
Chipset enables potentially need access to programmer data, e.g.
to process parameters, register masters etc.
Change-Id: Iad211ff97e92d1973f981156bfa3154d1ba71d45
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.sourcearcade.org/c/flashprog/+/72528
diff --git a/internal.c b/internal.c
index 103cb83..72a7a22 100644
--- a/internal.c
+++ b/internal.c
@@ -257,7 +257,7 @@
/* try to enable it. Failure IS an option, since not all motherboards
* really need this to be done, etc., etc.
*/
- ret = chipset_flash_enable();
+ ret = chipset_flash_enable(prog);
if (ret == -2) {
msg_perr("WARNING: No chipset found. Flash detection "
"will most likely fail.\n");