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/serprog.c b/serprog.c
index 458fa91..50ec327 100644
--- a/serprog.c
+++ b/serprog.c
@@ -358,7 +358,7 @@
 
 static enum chipbustype serprog_buses_supported = BUS_NONE;
 
-static int serprog_init(void)
+static int serprog_init(struct flashprog_programmer *const prog)
 {
 	uint16_t iface;
 	unsigned char pgmname[17];