|
@@ -51,8 +51,6 @@
|
|
|
#define DRIVER_AUTHOR "Greg Kroah-Hartman <greg@kroah.com>, Bill Ryder <bryder@sgi.com>, Kuba Ober <kuba@mareimbrium.org>, Andreas Mohr, Johan Hovold <jhovold@gmail.com>"
|
|
|
#define DRIVER_DESC "USB FTDI Serial Converters Driver"
|
|
|
|
|
|
-static __u16 vendor = FTDI_VID;
|
|
|
-static __u16 product;
|
|
|
|
|
|
struct ftdi_private {
|
|
|
enum ftdi_chip_type chip_type;
|
|
@@ -144,8 +142,8 @@ static struct ftdi_sio_quirk ftdi_8u2232c_quirk = {
|
|
|
|
|
|
|
|
|
/*
|
|
|
- * Device ID not listed? Test via module params product/vendor or
|
|
|
- * /sys/bus/usb/ftdi_sio/new_id, then send patch/report!
|
|
|
+ * Device ID not listed? Test it using
|
|
|
+ * /sys/bus/usb-serial/drivers/ftdi_sio/new_id and send a patch or report.
|
|
|
*/
|
|
|
static struct usb_device_id id_table_combined [] = {
|
|
|
{ USB_DEVICE(FTDI_VID, FTDI_ZEITCONTROL_TAGTRACE_MIFARE_PID) },
|
|
@@ -881,7 +879,6 @@ static struct usb_device_id id_table_combined [] = {
|
|
|
{ USB_DEVICE(FTDI_VID, FTDI_LUMEL_PD12_PID) },
|
|
|
/* Crucible Devices */
|
|
|
{ USB_DEVICE(FTDI_VID, FTDI_CT_COMET_PID) },
|
|
|
- { }, /* Optional parameter entry */
|
|
|
{ } /* Terminating entry */
|
|
|
};
|
|
|
|
|
@@ -2377,38 +2374,11 @@ static int ftdi_ioctl(struct tty_struct *tty,
|
|
|
return -ENOIOCTLCMD;
|
|
|
}
|
|
|
|
|
|
-static int __init ftdi_init(void)
|
|
|
-{
|
|
|
- if (vendor > 0 && product > 0) {
|
|
|
- /* Add user specified VID/PID to reserved element of table. */
|
|
|
- int i;
|
|
|
- for (i = 0; id_table_combined[i].idVendor; i++)
|
|
|
- ;
|
|
|
- id_table_combined[i].match_flags = USB_DEVICE_ID_MATCH_DEVICE;
|
|
|
- id_table_combined[i].idVendor = vendor;
|
|
|
- id_table_combined[i].idProduct = product;
|
|
|
- }
|
|
|
- return usb_serial_register_drivers(serial_drivers, KBUILD_MODNAME, id_table_combined);
|
|
|
-}
|
|
|
-
|
|
|
-static void __exit ftdi_exit(void)
|
|
|
-{
|
|
|
- usb_serial_deregister_drivers(serial_drivers);
|
|
|
-}
|
|
|
-
|
|
|
-
|
|
|
-module_init(ftdi_init);
|
|
|
-module_exit(ftdi_exit);
|
|
|
+module_usb_serial_driver(serial_drivers, id_table_combined);
|
|
|
|
|
|
MODULE_AUTHOR(DRIVER_AUTHOR);
|
|
|
MODULE_DESCRIPTION(DRIVER_DESC);
|
|
|
MODULE_LICENSE("GPL");
|
|
|
|
|
|
-module_param(vendor, ushort, 0);
|
|
|
-MODULE_PARM_DESC(vendor, "User specified vendor ID (default="
|
|
|
- __MODULE_STRING(FTDI_VID)")");
|
|
|
-module_param(product, ushort, 0);
|
|
|
-MODULE_PARM_DESC(product, "User specified product ID");
|
|
|
-
|
|
|
module_param(ndi_latency_timer, int, S_IRUGO | S_IWUSR);
|
|
|
MODULE_PARM_DESC(ndi_latency_timer, "NDI device latency timer override");
|