Commit 623c46f7 authored by Johan Hovold's avatar Johan Hovold

USB: serial: spcp8x5: simplify init_termios

Simplify init_termios which is only used to override the initial
baudrate.
Signed-off-by: default avatarJohan Hovold <johan@kernel.org>
parent d8a7f23c
......@@ -281,10 +281,7 @@ static void spcp8x5_dtr_rts(struct usb_serial_port *port, int on)
static void spcp8x5_init_termios(struct tty_struct *tty)
{
tty->termios = tty_std_termios;
tty->termios.c_cflag = B115200 | CS8 | CREAD | HUPCL | CLOCAL;
tty->termios.c_ispeed = 115200;
tty->termios.c_ospeed = 115200;
tty_encode_baud_rate(tty, 115200, 115200);
}
static void spcp8x5_set_termios(struct tty_struct *tty,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment