internal: Pass programmer context down into board enables
Board enables potentially need access to programmer data, e.g. to
process parameters, register masters etc.
Change-Id: I1531a6e1be9866adc5dce74c6f62bbbeae1bd274
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.sourcearcade.org/c/flashprog/+/72527
diff --git a/wbsio_spi.c b/wbsio_spi.c
index ff0083f..d4f2aac 100644
--- a/wbsio_spi.c
+++ b/wbsio_spi.c
@@ -77,7 +77,7 @@
.probe_opcode = default_spi_probe_opcode,
};
-int wbsio_check_for_spi(void)
+int wbsio_check_for_spi(struct flashprog_programmer *const prog)
{
if (0 == (wbsio_spibase = wbsio_get_spibase(WBSIO_PORT1)))
if (0 == (wbsio_spibase = wbsio_get_spibase(WBSIO_PORT2)))