mirror of
https://github.com/torvalds/linux.git
synced 2026-09-25 21:21:09 -04:00
serial: tegra: Use uart_xmit_advance()
Take advantage of the new uart_xmit_advance() helper. Reviewed-by: Thierry Reding <[email protected]> Signed-off-by: Ilpo Järvinen <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
3ea03c021d
commit
b7e2647671
@@ -496,8 +496,7 @@ static void tegra_uart_fill_tx_fifo(struct tegra_uart_port *tup, int max_bytes)
|
||||
break;
|
||||
}
|
||||
tegra_uart_write(tup, xmit->buf[xmit->tail], UART_TX);
|
||||
xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1);
|
||||
tup->uport.icount.tx++;
|
||||
uart_xmit_advance(&tup->uport, 1);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user