aboutsummaryrefslogtreecommitdiffstats
path: root/serprog.c
diff options
context:
space:
mode:
Diffstat (limited to 'serprog.c')
-rw-r--r--serprog.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/serprog.c b/serprog.c
index 37a9db41..1befce10 100644
--- a/serprog.c
+++ b/serprog.c
@@ -295,7 +295,7 @@ static int sp_stream_buffer_op(uint8_t cmd, uint32_t parmlen, uint8_t *parms)
return 0;
}
-static int serprog_spi_send_command(struct flashctx *flash,
+static int serprog_spi_send_command(const struct flashctx *flash,
unsigned int writecnt, unsigned int readcnt,
const unsigned char *writearr,
unsigned char *readarr);
@@ -894,7 +894,7 @@ void serprog_delay(unsigned int usecs)
sp_prev_was_write = 0;
}
-static int serprog_spi_send_command(struct flashctx *flash,
+static int serprog_spi_send_command(const struct flashctx *flash,
unsigned int writecnt, unsigned int readcnt,
const unsigned char *writearr,
unsigned char *readarr)