Skip to content

Commit

Permalink
serial: sh-sci: Use SCSMR_CKS instead of hardcoded literal 3
Browse files Browse the repository at this point in the history
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Geert Uytterhoeven authored and Greg Kroah-Hartman committed Oct 4, 2015
1 parent 54af500 commit 2944a33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/tty/serial/sh-sci.c
Original file line number Diff line number Diff line change
Expand Up @@ -1969,7 +1969,7 @@ static void sci_set_termios(struct uart_port *port, struct ktermios *termios,

sci_reset(port);

smr_val |= serial_port_in(port, SCSMR) & 3;
smr_val |= serial_port_in(port, SCSMR) & SCSMR_CKS;

uart_update_timeout(port, termios->c_cflag, baud);

Expand Down

0 comments on commit 2944a33

Please sign in to comment.