projects
/
fw
/
openocd
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Constify struct flash_driver instances
[fw/openocd]
/
src
/
flash
/
nor
/
jtagspi.c
diff --git
a/src/flash/nor/jtagspi.c
b/src/flash/nor/jtagspi.c
index 0750fdfd5039d07ec0e45081bcf14e856c17499f..a9f2dd4a4b8e0111bed8f01678933eb351b1de9b 100644
(file)
--- a/
src/flash/nor/jtagspi.c
+++ b/
src/flash/nor/jtagspi.c
@@
-427,7
+427,7
@@
static int jtagspi_info(struct flash_bank *bank, char *buf, int buf_size)
return ERROR_OK;
}
-struct flash_driver jtagspi_flash = {
+
const
struct flash_driver jtagspi_flash = {
.name = "jtagspi",
.flash_bank_command = jtagspi_flash_bank_command,
.erase = jtagspi_erase,