summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert+renesas@glider.be>2025-12-22 17:02:09 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-12-23 13:52:31 +0300
commitc14afba60a61bc80403a571a67db956aa9800dbb (patch)
treea730d7c81f41a37aa79289a62d9d07fcac96a5b1
parentb5024e804ee06330486caf3087e1b0d91e3797a5 (diff)
downloadlinux-c14afba60a61bc80403a571a67db956aa9800dbb.tar.xz
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@glider.be> Link: https://patch.msgid.link/ada3faf4698155a618ae6371b35eab121eb8b19c.1766411924.git.geert+renesas@glider.be Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/tty/serial/rsci.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/tty/serial/rsci.c b/drivers/tty/serial/rsci.c
index 1ef7c6d61707..c3f12df693ad 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;