diff options
author | Johan Hovold <johan@kernel.org> | 2019-04-21 14:21:52 +0200 |
---|---|---|
committer | Johan Hovold <johan@kernel.org> | 2019-04-26 08:38:00 +0200 |
commit | 42deef1592d2c04ad1e0c9d12fbd841037019396 (patch) | |
tree | 613545abddb2d9f731128a2c7a60b951192e02b9 /drivers/usb/serial | |
parent | fb56422cc40f452746a4a4f75261252159082123 (diff) | |
download | linux-42deef1592d2c04ad1e0c9d12fbd841037019396.tar.gz linux-42deef1592d2c04ad1e0c9d12fbd841037019396.tar.bz2 linux-42deef1592d2c04ad1e0c9d12fbd841037019396.zip |
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>
Diffstat (limited to 'drivers/usb/serial')
-rw-r--r-- | drivers/usb/serial/iuu_phoenix.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/serial/iuu_phoenix.c b/drivers/usb/serial/iuu_phoenix.c index 93763d3d5e56..d5bff69b1769 100644 --- a/drivers/usb/serial/iuu_phoenix.c +++ b/drivers/usb/serial/iuu_phoenix.c @@ -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; |