kl5kusb105.c (32078f915d1acab356080b144aa89fe3487f3979) | kl5kusb105.c (68e24113457e437b1576670f2419b77ed0531e9e) |
---|---|
1/* 2 * KLSI KL5KUSB105 chip RS232 converter driver 3 * 4 * Copyright (C) 2010 Johan Hovold <jhovold@gmail.com> 5 * Copyright (C) 2001 Utz-Uwe Haus <haus@uuhaus.de> 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by --- 72 unchanged lines hidden (view full) --- 81static const struct usb_device_id id_table[] = { 82 { USB_DEVICE(PALMCONNECT_VID, PALMCONNECT_PID) }, 83 { USB_DEVICE(KLSI_VID, KLSI_KL5KUSB105D_PID) }, 84 { } /* Terminating entry */ 85}; 86 87MODULE_DEVICE_TABLE(usb, id_table); 88 | 1/* 2 * KLSI KL5KUSB105 chip RS232 converter driver 3 * 4 * Copyright (C) 2010 Johan Hovold <jhovold@gmail.com> 5 * Copyright (C) 2001 Utz-Uwe Haus <haus@uuhaus.de> 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by --- 72 unchanged lines hidden (view full) --- 81static const struct usb_device_id id_table[] = { 82 { USB_DEVICE(PALMCONNECT_VID, PALMCONNECT_PID) }, 83 { USB_DEVICE(KLSI_VID, KLSI_KL5KUSB105D_PID) }, 84 { } /* Terminating entry */ 85}; 86 87MODULE_DEVICE_TABLE(usb, id_table); 88 |
89static struct usb_driver kl5kusb105d_driver = { 90 .name = "kl5kusb105d", 91 .id_table = id_table, 92}; 93 | |
94static struct usb_serial_driver kl5kusb105d_device = { 95 .driver = { 96 .owner = THIS_MODULE, 97 .name = "kl5kusb105d", 98 }, 99 .description = "KL5KUSB105D / PalmConnect", 100 .id_table = id_table, 101 .num_ports = 1, --- 574 unchanged lines hidden (view full) --- 676 priv->control_state &= ~TIOCM_DTR; 677 control = priv->control_state; 678 spin_unlock_irqrestore (&priv->lock, flags); 679 retval = mct_u232_set_modem_ctrl(serial, control); 680*/ 681 return retval; 682} 683 | 89static struct usb_serial_driver kl5kusb105d_device = { 90 .driver = { 91 .owner = THIS_MODULE, 92 .name = "kl5kusb105d", 93 }, 94 .description = "KL5KUSB105D / PalmConnect", 95 .id_table = id_table, 96 .num_ports = 1, --- 574 unchanged lines hidden (view full) --- 671 priv->control_state &= ~TIOCM_DTR; 672 control = priv->control_state; 673 spin_unlock_irqrestore (&priv->lock, flags); 674 retval = mct_u232_set_modem_ctrl(serial, control); 675*/ 676 return retval; 677} 678 |
684module_usb_serial_driver(kl5kusb105d_driver, serial_drivers); | 679module_usb_serial_driver(serial_drivers, id_table); |
685 686MODULE_AUTHOR(DRIVER_AUTHOR); 687MODULE_DESCRIPTION(DRIVER_DESC); 688MODULE_LICENSE("GPL"); 689 690module_param(debug, bool, S_IRUGO | S_IWUSR); 691MODULE_PARM_DESC(debug, "enable extensive debugging messages"); | 680 681MODULE_AUTHOR(DRIVER_AUTHOR); 682MODULE_DESCRIPTION(DRIVER_DESC); 683MODULE_LICENSE("GPL"); 684 685module_param(debug, bool, S_IRUGO | S_IWUSR); 686MODULE_PARM_DESC(debug, "enable extensive debugging messages"); |