All pastes #637143 Raw Edit

usb serial generic

public diff v1 · immutable
#637143 ·published 2007-07-28 16:24 UTC
rendered paste body
--- linux/drivers/usb/serial/generic.c.orig	2007-07-28 15:56:22.000000000 +0200+++ linux/drivers/usb/serial/generic.c	2007-07-28 16:06:12.000000000 +0200@@ -37,7 +37,19 @@ module_param(product, ushort, 0); MODULE_PARM_DESC(product, "User specified USB idProduct"); -static struct usb_device_id generic_device_ids[2]; /* Initially all zeroes. */+static struct usb_device_id generic_device_ids[] = {+	{+		.idVendor = 0,+		.idProduct = 0,+	}, {+		.match_flags = USB_DEVICE_ID_MATCH_VENDOR | USB_DEVICE_ID_MATCH_PRODUCT,+		.idVendor = 0x0681,+		.idProduct = 0x0046,+	}, {+		.idVendor = 0,+		.idProduct = 0,+	}+};  /* we want to look at all devices, as the vendor/product id can change  * depending on the command line argument */