aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/serial/empeg.c
diff options
context:
space:
mode:
authorAlan Cox <alan@linux.intel.com>2009-09-19 16:13:33 -0400
committerLive-CD User <linux@linux.site>2009-09-19 16:13:33 -0400
commitfe1ae7fdd2ee603f2d95f04e09a68f7f79045127 (patch)
tree1234647e3bd970cfb105dab1c4f0ad2cd14ce179 /drivers/usb/serial/empeg.c
parentba15ab0e8de0d4439a91342ad52d55ca9e313f3d (diff)
tty: USB serial termios bits
Various drivers have hacks to mangle termios structures. This stems from the fact there is no nice setup hook for configuring the termios settings when the port is created Signed-off-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/serial/empeg.c')
-rw-r--r--drivers/usb/serial/empeg.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/drivers/usb/serial/empeg.c b/drivers/usb/serial/empeg.c
index da559a773b51..33c9e9cf9eb2 100644
--- a/drivers/usb/serial/empeg.c
+++ b/drivers/usb/serial/empeg.c
@@ -89,8 +89,7 @@ static int empeg_chars_in_buffer(struct tty_struct *tty);
89static void empeg_throttle(struct tty_struct *tty); 89static void empeg_throttle(struct tty_struct *tty);
90static void empeg_unthrottle(struct tty_struct *tty); 90static void empeg_unthrottle(struct tty_struct *tty);
91static int empeg_startup(struct usb_serial *serial); 91static int empeg_startup(struct usb_serial *serial);
92static void empeg_set_termios(struct tty_struct *tty, 92static void empeg_init_termios(struct tty_struct *tty);
93 struct usb_serial_port *port, struct ktermios *old_termios);
94static void empeg_write_bulk_callback(struct urb *urb); 93static void empeg_write_bulk_callback(struct urb *urb);
95static void empeg_read_bulk_callback(struct urb *urb); 94static void empeg_read_bulk_callback(struct urb *urb);
96 95
@@ -122,7 +121,7 @@ static struct usb_serial_driver empeg_device = {
122 .throttle = empeg_throttle, 121 .throttle = empeg_throttle,
123 .unthrottle = empeg_unthrottle, 122 .unthrottle = empeg_unthrottle,
124 .attach = empeg_startup, 123 .attach = empeg_startup,
125 .set_termios = empeg_set_termios, 124 .init_termios = empeg_init_termios,
126 .write = empeg_write, 125 .write = empeg_write,
127 .write_room = empeg_write_room, 126 .write_room = empeg_write_room,
128 .chars_in_buffer = empeg_chars_in_buffer, 127 .chars_in_buffer = empeg_chars_in_buffer,
@@ -148,9 +147,6 @@ static int empeg_open(struct tty_struct *tty,struct usb_serial_port *port)
148 147
149 dbg("%s - port %d", __func__, port->number); 148 dbg("%s - port %d", __func__, port->number);
150 149
151 /* Force default termio settings */
152 empeg_set_termios(tty, port, NULL);
153
154 bytes_in = 0; 150 bytes_in = 0;
155 bytes_out = 0; 151 bytes_out = 0;
156 152
@@ -423,11 +419,9 @@ static int empeg_startup(struct usb_serial *serial)
423} 419}
424 420
425 421
426static void empeg_set_termios(struct tty_struct *tty, 422static void empeg_init_termios(struct tty_struct *tty)
427 struct usb_serial_port *port, struct ktermios *old_termios)
428{ 423{
429 struct ktermios *termios = tty->termios; 424 struct ktermios *termios = tty->termios;
430 dbg("%s - port %d", __func__, port->number);
431 425
432 /* 426 /*
433 * The empeg-car player wants these particular tty settings. 427 * The empeg-car player wants these particular tty settings.