projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d8a7f23
)
USB: serial: spcp8x5: simplify init_termios
author
Johan Hovold
<johan@kernel.org>
Sun, 21 Apr 2019 12:21:54 +0000
(14:21 +0200)
committer
Johan Hovold
<johan@kernel.org>
Fri, 26 Apr 2019 06:38:02 +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/spcp8x5.c
patch
|
blob
|
history
diff --git
a/drivers/usb/serial/spcp8x5.c
b/drivers/usb/serial/spcp8x5.c
index b42714855364f96cb6fbf12ec1a9e699cba2ad3a..3bac55bd9bd9de763ef3223f2b51b482c55b723a 100644
(file)
--- a/
drivers/usb/serial/spcp8x5.c
+++ b/
drivers/usb/serial/spcp8x5.c
@@
-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,