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/jlink_spi.c b/jlink_spi.c
index beabe63..b234b0e 100644
--- a/jlink_spi.c
+++ b/jlink_spi.c
@@ -195,7 +195,7 @@
 	return 0;
 }
 
-static int jlink_spi_init(void)
+static int jlink_spi_init(struct flashprog_programmer *const prog)
 {
 	char *arg;
 	unsigned long speed = 0;