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/ni845x_spi.c b/ni845x_spi.c
index 0e71e21..beb5ea5 100644
--- a/ni845x_spi.c
+++ b/ni845x_spi.c
@@ -389,7 +389,7 @@
 		ni845x_report_error("ni845xCloseFindDeviceHandle", tmp);
 }
 
-int ni845x_spi_init(void)
+int ni845x_spi_init(struct flashprog_programmer *const prog)
 {
 	char *speed_str = NULL;
 	char *CS_str = NULL;