]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
serial: rsci: Drop rsci_clear_SCxSR()
authorBiju Das <biju.das.jz@bp.renesas.com>
Sat, 29 Nov 2025 16:43:01 +0000 (16:43 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Dec 2025 14:07:06 +0000 (15:07 +0100)
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>
drivers/tty/serial/rsci.c

index 0533a4bb1d03c883971f4c5331f3a1595fb182e8..158173077c2f004d5fab2e546b0250dc7a1a3c60 100644 (file)
@@ -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,