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/dediprog.c b/dediprog.c
index 64caa8a..60bea4c 100644
--- a/dediprog.c
+++ b/dediprog.c
@@ -1098,7 +1098,7 @@
 	return ret;
 }
 
-static int dediprog_init(void)
+static int dediprog_init(struct flashprog_programmer *const prog)
 {
 	char *voltage, *id_str, *device, *spispeed, *target_str;
 	int spispeed_idx = 1;