Nico Huber submitted this change.
ni845x_spi: add missing const specifier to the spi_transmit function
Change-Id: I2c14361283b2da3725d9ba2cae0e1007e6be3d66
Signed-off-by: Miklós Márton <martonmiklosqdev@gmail.com>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/57003
Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Anastasia Klimchuk <aklm@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
---
M ni845x_spi.c
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ni845x_spi.c b/ni845x_spi.c
index 87a1dd8..4dcf140 100644
--- a/ni845x_spi.c
+++ b/ni845x_spi.c
@@ -480,7 +480,7 @@
return 0;
}
-static int ni845x_spi_transmit(struct flashctx *flash,
+static int ni845x_spi_transmit(const struct flashctx *flash,
unsigned int write_cnt,
unsigned int read_cnt,
const unsigned char *write_arr,
To view, visit change 57003. To unsubscribe, or for help writing mail filters, visit settings.