[<prev] [next>] [day] [month] [year] [list]
Message-ID: <ada3faf4698155a618ae6371b35eab121eb8b19c.1766411924.git.geert+renesas@glider.be>
Date: Mon, 22 Dec 2025 15:02:09 +0100
From: Geert Uytterhoeven <geert+renesas@...der.be>
To: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Jiri Slaby <jirislaby@...nel.org>,
Biju Das <biju.das.jz@...renesas.com>,
Lad Prabhakar <prabhakar.mahadev-lad.rj@...renesas.com>
Cc: linux-serial@...r.kernel.org,
linux-renesas-soc@...r.kernel.org,
linux-kernel@...r.kernel.org,
Geert Uytterhoeven <geert+renesas@...der.be>
Subject: [PATCH] serial: rsci: Convert to FIELD_MODIFY()
Use the FIELD_MODIFY() helper instead of open-coding the same operation.
Signed-off-by: Geert Uytterhoeven <geert+renesas@...der.be>
---
drivers/tty/serial/rsci.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/tty/serial/rsci.c b/drivers/tty/serial/rsci.c
index 1ef7c6d61707805f..c3f12df693ad273e 100644
--- a/drivers/tty/serial/rsci.c
+++ b/drivers/tty/serial/rsci.c
@@ -207,8 +207,7 @@ static int rsci_scif_set_rtrg(struct uart_port *port, int rx_trig)
else if (rx_trig < 1)
rx_trig = 0;
- fcr &= ~FCR_RTRG4_0;
- fcr |= field_prep(FCR_RTRG4_0, rx_trig);
+ FIELD_MODIFY(FCR_RTRG4_0, &fcr, rx_trig);
rsci_serial_out(port, FCR, fcr);
return rx_trig;
--
2.43.0
Powered by blists - more mailing lists