Clean up comments, whitespace, and copyright date in the AMD HT code.
[coreboot.git] / src / console / uart8250_console.c
index 333693befbc42998d3e9ca19aba187c32ec748a0..37364e710d6a5511fe49799d4034aa0eec78fffb 100644 (file)
@@ -26,9 +26,9 @@
 
 #define UART_LCS       TTYS0_LCS
 
-void ttyS0_init(void)
+static void ttyS0_init(void)
 {
-       static unsigned char div[8]={1,2,3,6,12,24,48,96};
+       static const unsigned char div[8]={1,2,3,6,12,24,48,96};
        int b_index=0;
        unsigned int divisor=TTYS0_DIV;
 
@@ -38,22 +38,22 @@ void ttyS0_init(void)
        uart8250_init(TTYS0_BASE, divisor, TTYS0_LCS);
 }
 
-void ttyS0_tx_byte(unsigned char data) 
+static void ttyS0_tx_byte(unsigned char data) 
 {
        uart8250_tx_byte(TTYS0_BASE, data);
 }
 
-unsigned char ttyS0_rx_byte(void) 
+static unsigned char ttyS0_rx_byte(void) 
 {
        return uart8250_rx_byte(TTYS0_BASE);
 }
 
-int ttyS0_tst_byte(unsigned char data
+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,