summaryrefslogtreecommitdiff
path: root/src/soc/mediatek/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/mediatek/common')
-rw-r--r--src/soc/mediatek/common/uart.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/soc/mediatek/common/uart.c b/src/soc/mediatek/common/uart.c
index 99cba13b24..ba3c71a8c6 100644
--- a/src/soc/mediatek/common/uart.c
+++ b/src/soc/mediatek/common/uart.c
@@ -139,22 +139,22 @@ static int mtk_uart_tst_byte(void)
return (read8(&uart_ptr->lsr) & UART8250_LSR_DR) == UART8250_LSR_DR;
}
-void uart_init(int idx)
+void uart_init(unsigned int idx)
{
mtk_uart_init();
}
-unsigned char uart_rx_byte(int idx)
+unsigned char uart_rx_byte(unsigned int idx)
{
return mtk_uart_rx_byte();
}
-void uart_tx_byte(int idx, unsigned char data)
+void uart_tx_byte(unsigned int idx, unsigned char data)
{
mtk_uart_tx_byte(data);
}
-void uart_tx_flush(int idx)
+void uart_tx_flush(unsigned int idx)
{
mtk_uart_tx_flush();
}