projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
42deef1
)
USB: serial: oti6858: simplify init_termios
author
Johan Hovold
<johan@kernel.org>
Sun, 21 Apr 2019 12:21:53 +0000
(14:21 +0200)
committer
Johan Hovold
<johan@kernel.org>
Fri, 26 Apr 2019 06:38:00 +0000
(08:38 +0200)
Simplify init_termios which is only used to override the initial
baudrate.
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/oti6858.c
patch
|
blob
|
history
diff --git
a/drivers/usb/serial/oti6858.c
b/drivers/usb/serial/oti6858.c
index
ae9cb15
..
38ae0fc
100644
(file)
--- a/
drivers/usb/serial/oti6858.c
+++ b/
drivers/usb/serial/oti6858.c
@@
-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,