Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+1 -2
+1 -2
drivers/usb/serial/iuu_phoenix.c
··· 942 942 943 943 static void iuu_init_termios(struct tty_struct *tty) 944 944 { 945 - tty->termios = tty_std_termios; 946 - tty->termios.c_cflag = CLOCAL | CREAD | CS8 | B9600 | CSTOPB | PARENB; 945 + tty->termios.c_cflag = B9600 | CS8 | CSTOPB | CREAD | PARENB | CLOCAL; 947 946 tty->termios.c_ispeed = 9600; 948 947 tty->termios.c_ospeed = 9600; 949 948 tty->termios.c_lflag = 0;