Pass programmer context to programmer->init()

Change-Id: I064eb4e25c3d382e4e5bde802306698fafe5e1d0
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.sourcearcade.org/c/flashprog/+/72526
diff --git a/stlinkv3_spi.c b/stlinkv3_spi.c
index a1d062b..b15c703 100644
--- a/stlinkv3_spi.c
+++ b/stlinkv3_spi.c
@@ -448,7 +448,7 @@
 	.probe_opcode	= default_spi_probe_opcode,
 };
 
-static int stlinkv3_spi_init(void)
+static int stlinkv3_spi_init(struct flashprog_programmer *const prog)
 {
 	uint16_t sck_freq_kHz = 1000;	// selecting 1 MHz SCK is a good bet
 	char *speed_str = NULL;