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/linux_gpio2_spi.c b/linux_gpio2_spi.c
index fd3cdf1..ef162b8 100644
--- a/linux_gpio2_spi.c
+++ b/linux_gpio2_spi.c
@@ -108,7 +108,7 @@
 	return 0;
 }
 
-static int linux_gpio_spi_init(void)
+static int linux_gpio_spi_init(struct flashprog_programmer *const prog)
 {
 	struct linux_gpio_spi *gpio_spi = NULL;
 	const char *param_str[] = { "cs", "sck", "mosi", "miso", "gpiochip" };