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
/
stm32f1x.c
diff --git
a/src/flash/nor/stm32f1x.c
b/src/flash/nor/stm32f1x.c
index cd060daaef81cfb5f8828bb0a2c3bbee83308715..d5d59c6113731a8d4ef9f540962e787d69c5e766 100644
(file)
--- a/
src/flash/nor/stm32f1x.c
+++ b/
src/flash/nor/stm32f1x.c
@@
-1570,7
+1570,7
@@
static const struct command_registration stm32x_command_handlers[] = {
COMMAND_REGISTRATION_DONE
};
-struct flash_driver stm32f1x_flash = {
+
const
struct flash_driver stm32f1x_flash = {
.name = "stm32f1x",
.commands = stm32x_command_handlers,
.flash_bank_command = stm32x_flash_bank_command,