serial: 8250: Fix typos in comments across various files
authorYu Jiaoliang <yujiaoliang@vivo.com>
Sun, 29 Sep 2024 10:09:31 +0000 (18:09 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Oct 2024 06:14:50 +0000 (08:14 +0200)
This patch fixes several typos in the comments within the tty/8250
directory to improve readability and code documentation.

Detected using codespell.

Signed-off-by: Yu Jiaoliang <yujiaoliang@vivo.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20240929100931.530620-1-yujiaoliang@vivo.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_bcm7271.c
drivers/tty/serial/8250/8250_exar.c
drivers/tty/serial/8250/8250_fintek.c
drivers/tty/serial/8250/8250_mtk.c
drivers/tty/serial/8250/8250_omap.c

index a713ffc..d0b1835 100644 (file)
@@ -812,7 +812,7 @@ static int brcmuart_handle_irq(struct uart_port *p)
                        /*
                         * if Receive Data Interrupt is enabled and
                         * we're uing hardware flow control, deassert
-                        * RTS and wait for any chars in the pipline to
+                        * RTS and wait for any chars in the pipeline to
                         * arrive and then check for DR again.
                         */
                        if ((ier & UART_IER_RDI) && (up->mcr & UART_MCR_AFE)) {
index 072eb2b..8a8b911 100644 (file)
@@ -362,7 +362,7 @@ static u16 exar_ee_read(struct exar8250 *priv, u8 ee_addr)
  * @priv: Device's private structure
  * @mpio_num: MPIO number/offset to configure
  *
- * Configure a single MPIO as an output and disable tristate. It is reccomended
+ * Configure a single MPIO as an output and disable tristate. It is recommended
  * to set the level with exar_mpio_set_high()/exar_mpio_set_low() prior to
  * calling this function to ensure default MPIO pin state.
  *
@@ -518,7 +518,7 @@ static int xr17v35x_startup(struct uart_port *port)
        serial_port_out(port, UART_XR_EFR, UART_EFR_ECB);
 
        /*
-        * Make sure all interrups are masked until initialization is
+        * Make sure all interrupts are masked until initialization is
         * complete and the FIFOs are cleared
         *
         * Synchronize UART_IER access against the console.
index e2aa2a1..f59c01f 100644 (file)
@@ -125,7 +125,7 @@ static int fintek_8250_enter_key(u16 base_port, u8 key)
        if (!request_muxed_region(base_port, 2, "8250_fintek"))
                return -EBUSY;
 
-       /* Force to deactive all SuperIO in this base_port */
+       /* Force to deactivate all SuperIO in this base_port */
        outb(EXIT_KEY, base_port + ADDR_PORT);
 
        outb(key, base_port + ADDR_PORT);
index ed2225b..b44de2e 100644 (file)
@@ -346,8 +346,8 @@ mtk8250_set_termios(struct uart_port *port, struct ktermios *termios,
        /*
         * Mediatek UARTs use an extra highspeed register (MTK_UART_HIGHS)
         *
-        * We need to recalcualte the quot register, as the claculation depends
-        * on the vaule in the highspeed register.
+        * We need to recalculate the quot register, as the calculation depends
+        * on the value in the highspeed register.
         *
         * Some baudrates are not supported by the chip, so we use the next
         * lower rate supported and update termios c_flag.
index 9b99a50..b3be0fb 100644 (file)
@@ -1304,7 +1304,7 @@ static void am654_8250_handle_rx_dma(struct uart_8250_port *up, u8 iir,
 
 /*
  * This is mostly serial8250_handle_irq(). We have a slightly different DMA
- * hoook for RX/TX and need different logic for them in the ISR. Therefore we
+ * hook for RX/TX and need different logic for them in the ISR. Therefore we
  * use the default routine in the non-DMA case and this one for with DMA.
  */
 static int omap_8250_dma_handle_irq(struct uart_port *port)
@@ -1338,7 +1338,7 @@ static int omap_8250_dma_handle_irq(struct uart_port *port)
                        serial8250_tx_chars(up);
                } else  {
                        /*
-                        * try again due to an earlier failer which
+                        * try again due to an earlier failure which
                         * might have been resolved by now.
                         */
                        if (omap_8250_tx_dma(up))