navman.c (32078f915d1acab356080b144aa89fe3487f3979) | navman.c (68e24113457e437b1576670f2419b77ed0531e9e) |
---|---|
1/* 2 * Navman Serial USB driver 3 * 4 * Copyright (C) 2006 Greg Kroah-Hartman <gregkh@suse.de> 5 * 6 * This program is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU General Public License 8 * version 2 as published by the Free Software Foundation. --- 16 unchanged lines hidden (view full) --- 25 26static const struct usb_device_id id_table[] = { 27 { USB_DEVICE(0x0a99, 0x0001) }, /* Talon Technology device */ 28 { USB_DEVICE(0x0df7, 0x0900) }, /* Mobile Action i-gotU */ 29 { }, 30}; 31MODULE_DEVICE_TABLE(usb, id_table); 32 | 1/* 2 * Navman Serial USB driver 3 * 4 * Copyright (C) 2006 Greg Kroah-Hartman <gregkh@suse.de> 5 * 6 * This program is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU General Public License 8 * version 2 as published by the Free Software Foundation. --- 16 unchanged lines hidden (view full) --- 25 26static const struct usb_device_id id_table[] = { 27 { USB_DEVICE(0x0a99, 0x0001) }, /* Talon Technology device */ 28 { USB_DEVICE(0x0df7, 0x0900) }, /* Mobile Action i-gotU */ 29 { }, 30}; 31MODULE_DEVICE_TABLE(usb, id_table); 32 |
33static struct usb_driver navman_driver = { 34 .name = "navman", 35 .id_table = id_table, 36}; 37 | |
38static void navman_read_int_callback(struct urb *urb) 39{ 40 struct usb_serial_port *port = urb->context; 41 unsigned char *data = urb->transfer_buffer; 42 struct tty_struct *tty; 43 int status = urb->status; 44 int result; 45 --- 73 unchanged lines hidden (view full) --- 119 .write = navman_write, 120 .read_int_callback = navman_read_int_callback, 121}; 122 123static struct usb_serial_driver * const serial_drivers[] = { 124 &navman_device, NULL 125}; 126 | 33static void navman_read_int_callback(struct urb *urb) 34{ 35 struct usb_serial_port *port = urb->context; 36 unsigned char *data = urb->transfer_buffer; 37 struct tty_struct *tty; 38 int status = urb->status; 39 int result; 40 --- 73 unchanged lines hidden (view full) --- 114 .write = navman_write, 115 .read_int_callback = navman_read_int_callback, 116}; 117 118static struct usb_serial_driver * const serial_drivers[] = { 119 &navman_device, NULL 120}; 121 |
127module_usb_serial_driver(navman_driver, serial_drivers); | 122module_usb_serial_driver(serial_drivers, id_table); |
128 129MODULE_LICENSE("GPL"); 130 131module_param(debug, bool, S_IRUGO | S_IWUSR); 132MODULE_PARM_DESC(debug, "Debug enabled or not"); | 123 124MODULE_LICENSE("GPL"); 125 126module_param(debug, bool, S_IRUGO | S_IWUSR); 127MODULE_PARM_DESC(debug, "Debug enabled or not"); |