diff options
author | Johan Hovold <jhovold@gmail.com> | 2014-05-26 13:23:01 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-05-27 18:04:04 -0400 |
commit | e825aaa0624ef5cc0aa06e3102ddfc9ed95c2e2c (patch) | |
tree | e847b104802ba21ab56681c9dbef1311845332f4 /drivers/usb/serial/sierra.c | |
parent | bc03cfe84d833a49a0a0a6d5e45fc84169f48e30 (diff) |
USB: sierra: remove unimplemented set_termios
The driver does not implement set_termios so the operation can be left
unset (tty will do the tty_termios_copy_hw for us).
Note that the send_setup call is bogus as it really only sets DTR/RTS
to their current values.
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/serial/sierra.c')
-rw-r--r-- | drivers/usb/serial/sierra.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/usb/serial/sierra.c b/drivers/usb/serial/sierra.c index fa0b78ad42d7..854ac61581ba 100644 --- a/drivers/usb/serial/sierra.c +++ b/drivers/usb/serial/sierra.c | |||
@@ -372,13 +372,6 @@ static int sierra_send_setup(struct usb_serial_port *port) | |||
372 | return retval; | 372 | return retval; |
373 | } | 373 | } |
374 | 374 | ||
375 | static void sierra_set_termios(struct tty_struct *tty, | ||
376 | struct usb_serial_port *port, struct ktermios *old_termios) | ||
377 | { | ||
378 | tty_termios_copy_hw(&tty->termios, old_termios); | ||
379 | sierra_send_setup(port); | ||
380 | } | ||
381 | |||
382 | static int sierra_tiocmget(struct tty_struct *tty) | 375 | static int sierra_tiocmget(struct tty_struct *tty) |
383 | { | 376 | { |
384 | struct usb_serial_port *port = tty->driver_data; | 377 | struct usb_serial_port *port = tty->driver_data; |
@@ -1079,7 +1072,6 @@ static struct usb_serial_driver sierra_device = { | |||
1079 | .write = sierra_write, | 1072 | .write = sierra_write, |
1080 | .write_room = sierra_write_room, | 1073 | .write_room = sierra_write_room, |
1081 | .chars_in_buffer = sierra_chars_in_buffer, | 1074 | .chars_in_buffer = sierra_chars_in_buffer, |
1082 | .set_termios = sierra_set_termios, | ||
1083 | .tiocmget = sierra_tiocmget, | 1075 | .tiocmget = sierra_tiocmget, |
1084 | .tiocmset = sierra_tiocmset, | 1076 | .tiocmset = sierra_tiocmset, |
1085 | .attach = sierra_startup, | 1077 | .attach = sierra_startup, |