mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 03:24:45 +01:00
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>
This commit is contained in:
parent
b5024e804e
commit
c14afba60a
1 changed files with 1 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue