Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

serial: cpm_uart: Use uart_xmit_advance()

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-14-ilpo.jarvinen@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Ilpo Järvinen and committed by
Greg Kroah-Hartman
f8097f0c 4146765c

+1 -2
+1 -2
drivers/tty/serial/cpm_uart/cpm_uart_core.c
··· 684 684 p = cpm2cpu_addr(in_be32(&bdp->cbd_bufaddr), pinfo); 685 685 while (count < pinfo->tx_fifosize) { 686 686 *p++ = xmit->buf[xmit->tail]; 687 - xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); 688 - port->icount.tx++; 687 + uart_xmit_advance(port, 1); 689 688 count++; 690 689 if (xmit->head == xmit->tail) 691 690 break;