summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libcpu/mips
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/lib/libcpu/mips')
-rw-r--r--c/src/lib/libcpu/mips/mongoosev/duart/mg5uart.c4
-rw-r--r--c/src/lib/libcpu/mips/mongoosev/duart/mg5uart.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/c/src/lib/libcpu/mips/mongoosev/duart/mg5uart.c b/c/src/lib/libcpu/mips/mongoosev/duart/mg5uart.c
index 51ecacdc49..00e5e7921e 100644
--- a/c/src/lib/libcpu/mips/mongoosev/duart/mg5uart.c
+++ b/c/src/lib/libcpu/mips/mongoosev/duart/mg5uart.c
@@ -893,7 +893,7 @@ MG5UART_STATIC void mg5uart_enable_interrupts(
* Flow control is only supported when using interrupts
*/
-console_fns mg5uart_fns =
+const console_fns mg5uart_fns =
{
libchip_serial_default_probe, /* deviceProbe */
mg5uart_open, /* deviceFirstOpen */
@@ -906,7 +906,7 @@ console_fns mg5uart_fns =
TRUE /* deviceOutputUsesInterrupts */
};
-console_fns mg5uart_fns_polled =
+const console_fns mg5uart_fns_polled =
{
libchip_serial_default_probe, /* deviceProbe */
mg5uart_open, /* deviceFirstOpen */
diff --git a/c/src/lib/libcpu/mips/mongoosev/duart/mg5uart.h b/c/src/lib/libcpu/mips/mongoosev/duart/mg5uart.h
index 7e8b53e0ec..2e01e259b3 100644
--- a/c/src/lib/libcpu/mips/mongoosev/duart/mg5uart.h
+++ b/c/src/lib/libcpu/mips/mongoosev/duart/mg5uart.h
@@ -73,8 +73,8 @@ extern "C" {
* Driver function table
*/
-extern console_fns mg5uart_fns;
-extern console_fns mg5uart_fns_polled;
+extern const console_fns mg5uart_fns;
+extern const console_fns mg5uart_fns_polled;
/*
* Default register access routines