summaryrefslogtreecommitdiffstats
path: root/drivers/tty
diff options
context:
space:
mode:
authorHugo Villeneuve <hvilleneuve@dimonoff.com>2023-11-22 12:58:59 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-11-25 07:23:16 +0000
commitfffa35a25b4ced5ec89b1c12cf6a4f1d9541d3cb (patch)
treed2beaf19b8ff8d7ebe82c215bdeb7f67485542a7 /drivers/tty
parent45a3a8ef81291b63a2b50a1a145857dd9fc05e89 (diff)
downloadlinux-fffa35a25b4ced5ec89b1c12cf6a4f1d9541d3cb.tar.gz
linux-fffa35a25b4ced5ec89b1c12cf6a4f1d9541d3cb.tar.bz2
linux-fffa35a25b4ced5ec89b1c12cf6a4f1d9541d3cb.zip
serial: sc16is7xx: change confusing comment about Tx FIFO
The comment wording can be confusing, as txlen will return the number of bytes available in the FIFO, which can be less than the maximum theoretical Tx FIFO size. Change the comment so that it is unambiguous. Signed-off-by: Hugo Villeneuve <hvilleneuve@dimonoff.com> Link: https://lore.kernel.org/r/20231122175859.3874753-1-hugo@hugovil.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty')
-rw-r--r--drivers/tty/serial/sc16is7xx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/sc16is7xx.c b/drivers/tty/serial/sc16is7xx.c
index 4c69c30fbac1..10e90a7774f0 100644
--- a/drivers/tty/serial/sc16is7xx.c
+++ b/drivers/tty/serial/sc16is7xx.c
@@ -664,7 +664,7 @@ static void sc16is7xx_handle_tx(struct uart_port *port)
/* Get length of data pending in circular buffer */
to_send = uart_circ_chars_pending(xmit);
if (likely(to_send)) {
- /* Limit to size of TX FIFO */
+ /* Limit to space available in TX FIFO */
txlen = sc16is7xx_port_read(port, SC16IS7XX_TXLVL_REG);
if (txlen > SC16IS7XX_FIFO_SIZE) {
dev_err_ratelimited(port->dev,