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:
parent
50542a884b
commit
bf873e4ae3
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue