diff options
author | Johan Hovold <johan@kernel.org> | 2019-04-21 08:21:47 -0400 |
---|---|---|
committer | Johan Hovold <johan@kernel.org> | 2019-04-26 02:37:53 -0400 |
commit | 6eb42a0f8c5fe89d0dad2202c942121468d73708 (patch) | |
tree | 844e88abdfdd0a2a7c18e88ede360f1598d98b71 | |
parent | 579bebe5dd522580019e7b10b07daaf500f9fb1e (diff) |
USB: serial: ark3116: drop redundant init_termios
The initial terminal settings set by the driver matches the default
settings provided by core so drop the redundant init_termios callback.
Signed-off-by: Johan Hovold <johan@kernel.org>
-rw-r--r-- | drivers/usb/serial/ark3116.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/drivers/usb/serial/ark3116.c b/drivers/usb/serial/ark3116.c index ff38aa8963cf..71a9206ea1e2 100644 --- a/drivers/usb/serial/ark3116.c +++ b/drivers/usb/serial/ark3116.c | |||
@@ -189,16 +189,6 @@ static int ark3116_port_remove(struct usb_serial_port *port) | |||
189 | return 0; | 189 | return 0; |
190 | } | 190 | } |
191 | 191 | ||
192 | static void ark3116_init_termios(struct tty_struct *tty) | ||
193 | { | ||
194 | struct ktermios *termios = &tty->termios; | ||
195 | *termios = tty_std_termios; | ||
196 | termios->c_cflag = B9600 | CS8 | ||
197 | | CREAD | HUPCL | CLOCAL; | ||
198 | termios->c_ispeed = 9600; | ||
199 | termios->c_ospeed = 9600; | ||
200 | } | ||
201 | |||
202 | static void ark3116_set_termios(struct tty_struct *tty, | 192 | static void ark3116_set_termios(struct tty_struct *tty, |
203 | struct usb_serial_port *port, | 193 | struct usb_serial_port *port, |
204 | struct ktermios *old_termios) | 194 | struct ktermios *old_termios) |
@@ -645,7 +635,6 @@ static struct usb_serial_driver ark3116_device = { | |||
645 | .port_probe = ark3116_port_probe, | 635 | .port_probe = ark3116_port_probe, |
646 | .port_remove = ark3116_port_remove, | 636 | .port_remove = ark3116_port_remove, |
647 | .set_termios = ark3116_set_termios, | 637 | .set_termios = ark3116_set_termios, |
648 | .init_termios = ark3116_init_termios, | ||
649 | .get_serial = ark3116_get_serial_info, | 638 | .get_serial = ark3116_get_serial_info, |
650 | .tiocmget = ark3116_tiocmget, | 639 | .tiocmget = ark3116_tiocmget, |
651 | .tiocmset = ark3116_tiocmset, | 640 | .tiocmset = ark3116_tiocmset, |