Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 104612
b: refs/heads/master
c: 71be4f8
h: refs/heads/master
v: v3
  • Loading branch information
Aleksey Gorelov authored and Greg Kroah-Hartman committed Jul 21, 2008
1 parent 8d38b2e commit 6539aa1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 830f4021a8d5ce97c6bed267132e5e90fb166192
refs/heads/master: 71be4f81e97fe1f42c48a6dfc411dc6d3c18687f
9 changes: 9 additions & 0 deletions trunk/drivers/usb/serial/usb_debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
#include <linux/usb.h>
#include <linux/usb/serial.h>

#define USB_DEBUG_MAX_PACKET_SIZE 8

static struct usb_device_id id_table [] = {
{ USB_DEVICE(0x0525, 0x127a) },
{ },
Expand All @@ -29,13 +31,20 @@ static struct usb_driver debug_driver = {
.no_dynamic_id = 1,
};

int usb_debug_open(struct usb_serial_port *port, struct file *filp)
{
port->bulk_out_size = USB_DEBUG_MAX_PACKET_SIZE;
return usb_serial_generic_open(port, filp);
}

static struct usb_serial_driver debug_device = {
.driver = {
.owner = THIS_MODULE,
.name = "debug",
},
.id_table = id_table,
.num_ports = 1,
.open = usb_debug_open,
};

static int __init debug_init(void)
Expand Down

0 comments on commit 6539aa1

Please sign in to comment.