From: Biju Das <biju.das.jz@bp.renesas.com>
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>
---
v4->v5:
* No change.
v3->v4:
* Collected tag
* Updated commit header and description
* Dropped rsci_clear_SCxSR() instead of rsci_clear_CFC() as it clears the
CFCLR register.
v2->v3:
* No change.
v1->v2:
* No change.
---
drivers/tty/serial/rsci.c | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/drivers/tty/serial/rsci.c b/drivers/tty/serial/rsci.c
index 0533a4bb1d03..158173077c2f 100644
--- a/drivers/tty/serial/rsci.c
+++ b/drivers/tty/serial/rsci.c
@@ -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,
--
2.43.0