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/atavia.c b/atavia.c
index 34d7b73..dc7317c 100644
--- a/atavia.c
+++ b/atavia.c
@@ -121,7 +121,7 @@
 	return (atavia_offset != 0) ? atavia_offset : (void *)phys_addr;
 }
 
-static int atavia_init(void)
+static int atavia_init(struct flashprog_programmer *const prog)
 {
 	char *arg = extract_programmer_param("offset");
 	if (arg) {