commit | e3a26888e14d16592c2c79d1516828d3d32961a4 | [log] [tgz] |
---|---|---|
author | Nico Huber <nico.h@gmx.de> | Wed Jan 11 21:45:51 2023 +0100 |
committer | Nico Huber <nico.h@gmx.de> | Sat Mar 09 10:30:24 2024 +0000 |
tree | 02d401e60defd27fe7bee194978bac782284cb39 | |
parent | 2b66ad9c4465432e6f2aff2e95f1e7a556bfc3f0 [diff] [blame] |
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/usbblaster_spi.c b/usbblaster_spi.c index 954967e..5be423b 100644 --- a/usbblaster_spi.c +++ b/usbblaster_spi.c
@@ -72,7 +72,7 @@ /* Returns 0 upon success, a negative number upon errors. */ -static int usbblaster_spi_init(void) +static int usbblaster_spi_init(struct flashprog_programmer *const prog) { uint8_t buf[BUF_SIZE + 1] = { 0 };