omninet.c (32078f915d1acab356080b144aa89fe3487f3979) | omninet.c (68e24113457e437b1576670f2419b77ed0531e9e) |
---|---|
1/* 2 * USB ZyXEL omni.net LCD PLUS driver 3 * 4 * This program is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU General Public License version 6 * 2 as published by the Free Software Foundation. 7 * 8 * See Documentation/usb/usb-serial.txt for more information on using this --- 40 unchanged lines hidden (view full) --- 49static void omninet_release(struct usb_serial *serial); 50static int omninet_attach(struct usb_serial *serial); 51 52static const struct usb_device_id id_table[] = { 53 { USB_DEVICE(ZYXEL_VENDOR_ID, ZYXEL_OMNINET_ID) }, 54 { USB_DEVICE(ZYXEL_VENDOR_ID, BT_IGNITIONPRO_ID) }, 55 { } /* Terminating entry */ 56}; | 1/* 2 * USB ZyXEL omni.net LCD PLUS driver 3 * 4 * This program is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU General Public License version 6 * 2 as published by the Free Software Foundation. 7 * 8 * See Documentation/usb/usb-serial.txt for more information on using this --- 40 unchanged lines hidden (view full) --- 49static void omninet_release(struct usb_serial *serial); 50static int omninet_attach(struct usb_serial *serial); 51 52static const struct usb_device_id id_table[] = { 53 { USB_DEVICE(ZYXEL_VENDOR_ID, ZYXEL_OMNINET_ID) }, 54 { USB_DEVICE(ZYXEL_VENDOR_ID, BT_IGNITIONPRO_ID) }, 55 { } /* Terminating entry */ 56}; |
57 | |
58MODULE_DEVICE_TABLE(usb, id_table); 59 | 57MODULE_DEVICE_TABLE(usb, id_table); 58 |
60static struct usb_driver omninet_driver = { 61 .name = "omninet", 62 .id_table = id_table, 63}; 64 65 | |
66static struct usb_serial_driver zyxel_omninet_device = { 67 .driver = { 68 .owner = THIS_MODULE, 69 .name = "omninet", 70 }, 71 .description = "ZyXEL - omni.net lcd plus usb", 72 .id_table = id_table, 73 .num_ports = 1, --- 227 unchanged lines hidden (view full) --- 301 302static void omninet_release(struct usb_serial *serial) 303{ 304 struct usb_serial_port *port = serial->port[0]; 305 306 kfree(usb_get_serial_port_data(port)); 307} 308 | 59static struct usb_serial_driver zyxel_omninet_device = { 60 .driver = { 61 .owner = THIS_MODULE, 62 .name = "omninet", 63 }, 64 .description = "ZyXEL - omni.net lcd plus usb", 65 .id_table = id_table, 66 .num_ports = 1, --- 227 unchanged lines hidden (view full) --- 294 295static void omninet_release(struct usb_serial *serial) 296{ 297 struct usb_serial_port *port = serial->port[0]; 298 299 kfree(usb_get_serial_port_data(port)); 300} 301 |
309module_usb_serial_driver(omninet_driver, serial_drivers); | 302module_usb_serial_driver(serial_drivers, id_table); |
310 311MODULE_AUTHOR(DRIVER_AUTHOR); 312MODULE_DESCRIPTION(DRIVER_DESC); 313MODULE_LICENSE("GPL"); 314 315module_param(debug, bool, S_IRUGO | S_IWUSR); 316MODULE_PARM_DESC(debug, "Debug enabled or not"); | 303 304MODULE_AUTHOR(DRIVER_AUTHOR); 305MODULE_DESCRIPTION(DRIVER_DESC); 306MODULE_LICENSE("GPL"); 307 308module_param(debug, bool, S_IRUGO | S_IWUSR); 309MODULE_PARM_DESC(debug, "Debug enabled or not"); |