summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Reinauer <stepan@coresystems.de>2007-10-24 14:42:12 +0000
committerStefan Reinauer <stepan@openbios.org>2007-10-24 14:42:12 +0000
commitbf873e4ae3e95e92c829cfec1d1efacbd25ba7ea (patch)
tree52ff4ec15a4715ec4d8dd7810beb595192c0fc55
parent50542a884b13e47b28b97147def60617267ff8ff (diff)
downloadcoreboot-bf873e4ae3e95e92c829cfec1d1efacbd25ba7ea.tar.xz
Another CONSTification...
(trivial) Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2895 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
-rw-r--r--src/console/btext_console.c2
-rw-r--r--src/console/logbuf_console.c2
-rw-r--r--src/console/uart8250_console.c2
-rw-r--r--src/console/usbdebug_direct_console.c2
-rw-r--r--src/console/vga_console.c2
5 files changed, 5 insertions, 5 deletions
diff --git a/src/console/btext_console.c b/src/console/btext_console.c
index ae8dc8ca10..bf2c555881 100644
--- a/src/console/btext_console.c
+++ b/src/console/btext_console.c
@@ -445,7 +445,7 @@ void btext_tx_byte(unsigned char data)
btext_drawchar(data);
}
-static struct console_driver btext_console __console = {
+static const struct console_driver btext_console __console = {
.init = btext_init,
.tx_byte = btext_tx_byte,
.rx_byte = 0,
diff --git a/src/console/logbuf_console.c b/src/console/logbuf_console.c
index 00185d383c..3b6c744503 100644
--- a/src/console/logbuf_console.c
+++ b/src/console/logbuf_console.c
@@ -13,7 +13,7 @@ static void logbuf_tx_byte(unsigned char byte)
logbuf_offset = (logbuf_offset +1) % LOGBUF_SIZE;
}
-static struct console_driver __console = {
+static const struct console_driver __console = {
.init = 0,
.tx_byte = logbuf_tx_byte,
.rx_byte = 0,
diff --git a/src/console/uart8250_console.c b/src/console/uart8250_console.c
index e6642350d7..37364e710d 100644
--- a/src/console/uart8250_console.c
+++ b/src/console/uart8250_console.c
@@ -53,7 +53,7 @@ static int ttyS0_tst_byte(void)
return uart8250_can_rx_byte(TTYS0_BASE);
}
-static struct console_driver uart8250_console __console = {
+static const struct console_driver uart8250_console __console = {
.init = ttyS0_init,
.tx_byte = ttyS0_tx_byte,
.rx_byte = ttyS0_rx_byte,
diff --git a/src/console/usbdebug_direct_console.c b/src/console/usbdebug_direct_console.c
index 172d5c8b55..18fe6dcb37 100644
--- a/src/console/usbdebug_direct_console.c
+++ b/src/console/usbdebug_direct_console.c
@@ -49,7 +49,7 @@ static int dbgp_tst_byte(void)
return dbg_info.ehci_debug;
}
-static struct console_driver usbdebug_direct_console __console = {
+static const struct console_driver usbdebug_direct_console __console = {
.init = dbgp_init,
.tx_byte = dbgp_tx_byte,
.rx_byte = dbgp_rx_byte,
diff --git a/src/console/vga_console.c b/src/console/vga_console.c
index e9756c8996..a93e2a34f7 100644
--- a/src/console/vga_console.c
+++ b/src/console/vga_console.c
@@ -106,7 +106,7 @@ static void vga_tx_byte(unsigned char byte)
write_crtc((vga_col + (vga_line *COLS)) & 0x0ff, CRTC_CURSOR_LO);
}
-static struct console_driver vga_console __console ={
+static const struct console_driver vga_console __console ={
.init = 0,
.tx_byte = vga_tx_byte,
.rx_byte = 0,