From: Zihao Tang <tangzihao1@xxxxxxxxxxxxx> Fix 5 coding style warings reported by checkpatch.pl. Fix 4 "WARNING: Block comments use a trailing */ on a separate line". Fix 1 "WARNING: Prefer 'unsigned int' to bare use of 'unsigned'". Signed-off-by: Zihao Tang <tangzihao1@xxxxxxxxxxxxx> Signed-off-by: Jay Fang <f.fangjian@xxxxxxxxxx> --- drivers/tty/serial/bcm63xx_uart.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/drivers/tty/serial/bcm63xx_uart.c b/drivers/tty/serial/bcm63xx_uart.c index 5fb0e84..76e2ab6 100644 --- a/drivers/tty/serial/bcm63xx_uart.c +++ b/drivers/tty/serial/bcm63xx_uart.c @@ -231,21 +231,24 @@ static void bcm_uart_do_rx(struct uart_port *port) /* limit number of char read in interrupt, should not be * higher than fifo size anyway since we're much faster than - * serial port */ + * serial port + */ max_count = 32; do { unsigned int iestat, c, cstat; char flag; /* get overrun/fifo empty information from ier - * register */ + * register + */ iestat = bcm_uart_readl(port, UART_IR_REG); if (unlikely(iestat & UART_IR_STAT(UART_IR_RXOVER))) { unsigned int val; /* fifo reset is required to clear - * interrupt */ + * interrupt + */ val = bcm_uart_readl(port, UART_CTL_REG); val |= UART_CTL_RSTRXFIFO_MASK; bcm_uart_writel(port, val, UART_CTL_REG); @@ -424,7 +427,8 @@ static void bcm_uart_flush(struct uart_port *port) bcm_uart_writel(port, val, UART_CTL_REG); /* read any pending char to make sure all irq status are - * cleared */ + * cleared + */ (void)bcm_uart_readl(port, UART_FIFO_REG); } @@ -764,7 +768,7 @@ static int __init bcm63xx_console_init(void) console_initcall(bcm63xx_console_init); -static void bcm_early_write(struct console *con, const char *s, unsigned n) +static void bcm_early_write(struct console *con, const char *s, unsigned int n) { struct earlycon_device *dev = con->data; -- 2.7.4