Skip to content

Commit 0927c64

Browse files
Yu Jiaolianggregkh
authored andcommitted
serial: 8250: Fix typos in comments across various files
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 <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Reviewed-by: AngeloGioacchino Del Regno <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent dbe683f commit 0927c64

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

drivers/tty/serial/8250/8250_bcm7271.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -812,7 +812,7 @@ static int brcmuart_handle_irq(struct uart_port *p)
812812
/*
813813
* if Receive Data Interrupt is enabled and
814814
* we're uing hardware flow control, deassert
815-
* RTS and wait for any chars in the pipline to
815+
* RTS and wait for any chars in the pipeline to
816816
* arrive and then check for DR again.
817817
*/
818818
if ((ier & UART_IER_RDI) && (up->mcr & UART_MCR_AFE)) {

drivers/tty/serial/8250/8250_exar.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ static u16 exar_ee_read(struct exar8250 *priv, u8 ee_addr)
362362
* @priv: Device's private structure
363363
* @mpio_num: MPIO number/offset to configure
364364
*
365-
* Configure a single MPIO as an output and disable tristate. It is reccomended
365+
* Configure a single MPIO as an output and disable tristate. It is recommended
366366
* to set the level with exar_mpio_set_high()/exar_mpio_set_low() prior to
367367
* calling this function to ensure default MPIO pin state.
368368
*
@@ -518,7 +518,7 @@ static int xr17v35x_startup(struct uart_port *port)
518518
serial_port_out(port, UART_XR_EFR, UART_EFR_ECB);
519519

520520
/*
521-
* Make sure all interrups are masked until initialization is
521+
* Make sure all interrupts are masked until initialization is
522522
* complete and the FIFOs are cleared
523523
*
524524
* Synchronize UART_IER access against the console.

drivers/tty/serial/8250/8250_fintek.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ static int fintek_8250_enter_key(u16 base_port, u8 key)
125125
if (!request_muxed_region(base_port, 2, "8250_fintek"))
126126
return -EBUSY;
127127

128-
/* Force to deactive all SuperIO in this base_port */
128+
/* Force to deactivate all SuperIO in this base_port */
129129
outb(EXIT_KEY, base_port + ADDR_PORT);
130130

131131
outb(key, base_port + ADDR_PORT);

drivers/tty/serial/8250/8250_mtk.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,8 +346,8 @@ mtk8250_set_termios(struct uart_port *port, struct ktermios *termios,
346346
/*
347347
* Mediatek UARTs use an extra highspeed register (MTK_UART_HIGHS)
348348
*
349-
* We need to recalcualte the quot register, as the claculation depends
350-
* on the vaule in the highspeed register.
349+
* We need to recalculate the quot register, as the calculation depends
350+
* on the value in the highspeed register.
351351
*
352352
* Some baudrates are not supported by the chip, so we use the next
353353
* lower rate supported and update termios c_flag.

drivers/tty/serial/8250/8250_omap.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1304,7 +1304,7 @@ static void am654_8250_handle_rx_dma(struct uart_8250_port *up, u8 iir,
13041304

13051305
/*
13061306
* This is mostly serial8250_handle_irq(). We have a slightly different DMA
1307-
* hoook for RX/TX and need different logic for them in the ISR. Therefore we
1307+
* hook for RX/TX and need different logic for them in the ISR. Therefore we
13081308
* use the default routine in the non-DMA case and this one for with DMA.
13091309
*/
13101310
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)
13381338
serial8250_tx_chars(up);
13391339
} else {
13401340
/*
1341-
* try again due to an earlier failer which
1341+
* try again due to an earlier failure which
13421342
* might have been resolved by now.
13431343
*/
13441344
if (omap_8250_tx_dma(up))

0 commit comments

Comments
 (0)