mirror of
https://github.com/torvalds/linux.git
synced 2024-11-28 15:11:31 +00:00
USB: serial: iuu_phoenix: simplify init_termios
Override the initial terminal settings provided by core directly instead of first resetting them to tty_std_termios. Also reorder the cflags as they are usually seen (in bit order). Signed-off-by: Johan Hovold <johan@kernel.org>
This commit is contained in:
parent
fb56422cc4
commit
42deef1592
@ -942,8 +942,7 @@ static void iuu_close(struct usb_serial_port *port)
|
||||
|
||||
static void iuu_init_termios(struct tty_struct *tty)
|
||||
{
|
||||
tty->termios = tty_std_termios;
|
||||
tty->termios.c_cflag = CLOCAL | CREAD | CS8 | B9600 | CSTOPB | PARENB;
|
||||
tty->termios.c_cflag = B9600 | CS8 | CSTOPB | CREAD | PARENB | CLOCAL;
|
||||
tty->termios.c_ispeed = 9600;
|
||||
tty->termios.c_ospeed = 9600;
|
||||
tty->termios.c_lflag = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user