mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
USB: serial: oti6858: simplify init_termios
Simplify init_termios which is only used to override the initial baudrate. Signed-off-by: Johan Hovold <johan@kernel.org>
This commit is contained in:
parent
42deef1592
commit
d8a7f23c59
1 changed files with 1 additions and 4 deletions
|
@ -393,10 +393,7 @@ static int oti6858_chars_in_buffer(struct tty_struct *tty)
|
|||
|
||||
static void oti6858_init_termios(struct tty_struct *tty)
|
||||
{
|
||||
tty->termios = tty_std_termios;
|
||||
tty->termios.c_cflag = B38400 | CS8 | CREAD | HUPCL | CLOCAL;
|
||||
tty->termios.c_ispeed = 38400;
|
||||
tty->termios.c_ospeed = 38400;
|
||||
tty_encode_baud_rate(tty, 38400, 38400);
|
||||
}
|
||||
|
||||
static void oti6858_set_termios(struct tty_struct *tty,
|
||||
|
|
Loading…
Add table
Reference in a new issue