summaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/rda-uart.c
diff options
context:
space:
mode:
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>2022-06-24 22:54:23 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-06-27 14:41:31 +0200
commiteb47b59afb7e46c952d7b03884245364990d4910 (patch)
tree3a07f84ec0ecd02d7b1d835fabecdf6a53939bd8 /drivers/tty/serial/rda-uart.c
parentserial: 8250: Use C99 array initializer & define UART_REG_UNMAPPED (diff)
downloadlinux-eb47b59afb7e46c952d7b03884245364990d4910.tar.xz
linux-eb47b59afb7e46c952d7b03884245364990d4910.zip
serial: Convert SERIAL_XMIT_SIZE to UART_XMIT_SIZE
Both UART_XMIT_SIZE and SERIAL_XMIT_SIZE are defined. Make them all UART_XMIT_SIZE. Reviewed-by: Jiri Slaby <jirislaby@kernel.org> Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Link: https://lore.kernel.org/r/20220624205424.12686-6-ilpo.jarvinen@linux.intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/rda-uart.c')
-rw-r--r--drivers/tty/serial/rda-uart.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/rda-uart.c b/drivers/tty/serial/rda-uart.c
index f556b4955f59..feb2054aba37 100644
--- a/drivers/tty/serial/rda-uart.c
+++ b/drivers/tty/serial/rda-uart.c
@@ -353,7 +353,7 @@ static void rda_uart_send_chars(struct uart_port *port)
ch = xmit->buf[xmit->tail];
rda_uart_write(port, ch, RDA_UART_RXTX_BUFFER);
- xmit->tail = (xmit->tail + 1) & (SERIAL_XMIT_SIZE - 1);
+ xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1);
port->icount.tx++;
}