mirror of
https://github.com/torvalds/linux.git
synced 2026-05-27 08:33:17 +02:00
serial: rsci: Drop rsci_clear_SCxSR()
Drop rsci_clear_SCxSR by reusing rsci_clear_CFC() as the contents of both functions are the same. Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com> Tested-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com> Link: https://patch.msgid.link/20251129164325.209213-6-biju.das.jz@bp.renesas.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
42f7303c5f
commit
450bd399c8
|
|
@ -137,10 +137,6 @@ static void rsci_clear_DRxC(struct uart_port *port)
|
|||
rsci_serial_out(port, FFCLR, FFCLR_DRC);
|
||||
}
|
||||
|
||||
static void rsci_clear_SCxSR(struct uart_port *port, unsigned int mask)
|
||||
{
|
||||
rsci_serial_out(port, CFCLR, mask);
|
||||
}
|
||||
|
||||
static void rsci_start_rx(struct uart_port *port)
|
||||
{
|
||||
|
|
@ -391,7 +387,7 @@ static void rsci_poll_put_char(struct uart_port *port, unsigned char c)
|
|||
}
|
||||
rsci_serial_out(port, TDR, c);
|
||||
done:
|
||||
rsci_clear_SCxSR(port, CFCLR_TDREC);
|
||||
rsci_clear_CFC(port, CFCLR_TDREC);
|
||||
}
|
||||
|
||||
static void rsci_prepare_console_write(struct uart_port *port, u32 ctrl)
|
||||
|
|
@ -464,7 +460,7 @@ static const struct uart_ops rsci_uart_ops = {
|
|||
static const struct sci_port_ops rsci_port_ops = {
|
||||
.read_reg = rsci_serial_in,
|
||||
.write_reg = rsci_serial_out,
|
||||
.clear_SCxSR = rsci_clear_SCxSR,
|
||||
.clear_SCxSR = rsci_clear_CFC,
|
||||
.transmit_chars = rsci_transmit_chars,
|
||||
.receive_chars = rsci_receive_chars,
|
||||
.poll_put_char = rsci_poll_put_char,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user