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/ch347_spi.c b/ch347_spi.c
index 98ae28e..aa1ee0b 100644
--- a/ch347_spi.c
+++ b/ch347_spi.c
@@ -269,7 +269,7 @@
 }
 
 /* Largely copied from ch341a_spi.c */
-static int ch347_spi_init(void)
+static int ch347_spi_init(struct flashprog_programmer *const prog)
 {
 	struct ch347_spi_data *ch347_data = calloc(1, sizeof(*ch347_data));
 	if (!ch347_data) {