serial: milbeaut_usio: Use uart_xmit_advance()
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Wed, 19 Oct 2022 09:11:30 +0000 (12:11 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 3 Nov 2022 02:35:42 +0000 (03:35 +0100)
Take advantage of the new uart_xmit_advance() helper.

Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20221019091151.6692-24-ilpo.jarvinen@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/milbeaut_usio.c

index c15e0d84dc7e32fd35b0f8f2dc14f6ce602a4e48..44988a2941b8d12d7a5684ca7f35d119577235b3 100644 (file)
@@ -98,8 +98,7 @@ static void mlb_usio_tx_chars(struct uart_port *port)
        do {
                writew(xmit->buf[xmit->tail], port->membase + MLB_USIO_REG_DR);
 
-               xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1);
-               port->icount.tx++;
+               uart_xmit_advance(port, 1);
                if (uart_circ_empty(xmit))
                        break;