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
This commit is contained in:
Stefan Reinauer 2007-10-24 14:42:12 +00:00 committed by Stefan Reinauer
parent 50542a884b
commit bf873e4ae3
5 changed files with 5 additions and 5 deletions

View File

@ -445,7 +445,7 @@ void btext_tx_byte(unsigned char data)
btext_drawchar(data); btext_drawchar(data);
} }
static struct console_driver btext_console __console = { static const struct console_driver btext_console __console = {
.init = btext_init, .init = btext_init,
.tx_byte = btext_tx_byte, .tx_byte = btext_tx_byte,
.rx_byte = 0, .rx_byte = 0,

View File

@ -13,7 +13,7 @@ static void logbuf_tx_byte(unsigned char byte)
logbuf_offset = (logbuf_offset +1) % LOGBUF_SIZE; logbuf_offset = (logbuf_offset +1) % LOGBUF_SIZE;
} }
static struct console_driver __console = { static const struct console_driver __console = {
.init = 0, .init = 0,
.tx_byte = logbuf_tx_byte, .tx_byte = logbuf_tx_byte,
.rx_byte = 0, .rx_byte = 0,

View File

@ -53,7 +53,7 @@ static int ttyS0_tst_byte(void)
return uart8250_can_rx_byte(TTYS0_BASE); 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, .init = ttyS0_init,
.tx_byte = ttyS0_tx_byte, .tx_byte = ttyS0_tx_byte,
.rx_byte = ttyS0_rx_byte, .rx_byte = ttyS0_rx_byte,

View File

@ -49,7 +49,7 @@ static int dbgp_tst_byte(void)
return dbg_info.ehci_debug; 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, .init = dbgp_init,
.tx_byte = dbgp_tx_byte, .tx_byte = dbgp_tx_byte,
.rx_byte = dbgp_rx_byte, .rx_byte = dbgp_rx_byte,

View File

@ -106,7 +106,7 @@ static void vga_tx_byte(unsigned char byte)
write_crtc((vga_col + (vga_line *COLS)) & 0x0ff, CRTC_CURSOR_LO); 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, .init = 0,
.tx_byte = vga_tx_byte, .tx_byte = vga_tx_byte,
.rx_byte = 0, .rx_byte = 0,