diff options
| author | Ilpo Järvinen <[email protected]> | 2022-10-19 12:11:32 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2022-11-03 03:35:42 +0100 |
| commit | 98fdebeebbad98393d691aaa092e3c7889e5cbbd (patch) | |
| tree | 54c609691d5dc567346efdd4a233bea4c3ea7fa1 | |
| parent | 269599fa886f63dc425857f4672e1d0c8df2a5f3 (diff) | |
serial: pic32: Use uart_xmit_advance()
Take advantage of the new uart_xmit_advance() helper.
Signed-off-by: Ilpo Järvinen <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
| -rw-r--r-- | drivers/tty/serial/pic32_uart.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/tty/serial/pic32_uart.c b/drivers/tty/serial/pic32_uart.c index 2beada66c824..52d026865a32 100644 --- a/drivers/tty/serial/pic32_uart.c +++ b/drivers/tty/serial/pic32_uart.c @@ -376,8 +376,7 @@ static void pic32_uart_do_tx(struct uart_port *port) pic32_uart_writel(sport, PIC32_UART_TX, c); - xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); - port->icount.tx++; + uart_xmit_advance(port, 1); if (uart_circ_empty(xmit)) break; if (--max_count == 0) |