aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/serial/usb_debug.c
diff options
context:
space:
mode:
authorJohan Hovold <jhovold@gmail.com>2010-05-16 14:33:48 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2010-05-20 16:21:49 -0400
commit7288d7550056c17d26c09a21f1a5c3764f2f882a (patch)
treef47ce566dc1823dd55dd3e634857e50c9bb294cb /drivers/usb/serial/usb_debug.c
parent4b8e12336fede9e30b6140e840431161d46cf677 (diff)
USB: usb_debug: set bulk out size at probe
Use bulk_out_size in usb_serial_driver to set urb buffer size. Signed-off-by: Johan Hovold <jhovold@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/serial/usb_debug.c')
-rw-r--r--drivers/usb/serial/usb_debug.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/usb/serial/usb_debug.c b/drivers/usb/serial/usb_debug.c
index aa2702b76291..f2ed6a31be77 100644
--- a/drivers/usb/serial/usb_debug.c
+++ b/drivers/usb/serial/usb_debug.c
@@ -43,12 +43,6 @@ static struct usb_driver debug_driver = {
43 .no_dynamic_id = 1, 43 .no_dynamic_id = 1,
44}; 44};
45 45
46static int usb_debug_open(struct tty_struct *tty, struct usb_serial_port *port)
47{
48 port->bulk_out_size = USB_DEBUG_MAX_PACKET_SIZE;
49 return usb_serial_generic_open(tty, port);
50}
51
52/* This HW really does not support a serial break, so one will be 46/* This HW really does not support a serial break, so one will be
53 * emulated when ever the break state is set to true. 47 * emulated when ever the break state is set to true.
54 */ 48 */
@@ -82,7 +76,7 @@ static struct usb_serial_driver debug_device = {
82 }, 76 },
83 .id_table = id_table, 77 .id_table = id_table,
84 .num_ports = 1, 78 .num_ports = 1,
85 .open = usb_debug_open, 79 .bulk_out_size = USB_DEBUG_MAX_PACKET_SIZE,
86 .break_ctl = usb_debug_break_ctl, 80 .break_ctl = usb_debug_break_ctl,
87 .read_bulk_callback = usb_debug_read_bulk_callback, 81 .read_bulk_callback = usb_debug_read_bulk_callback,
88}; 82};