symbolserial.c (32078f915d1acab356080b144aa89fe3487f3979) | symbolserial.c (68e24113457e437b1576670f2419b77ed0531e9e) |
---|---|
1/* 2 * Symbol USB barcode to serial driver 3 * 4 * Copyright (C) 2009 Greg Kroah-Hartman <gregkh@suse.de> 5 * Copyright (C) 2009 Novell Inc. 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License version --- 255 unchanged lines hidden (view full) --- 264static void symbol_release(struct usb_serial *serial) 265{ 266 struct symbol_private *priv = usb_get_serial_data(serial); 267 268 kfree(priv->int_buffer); 269 kfree(priv); 270} 271 | 1/* 2 * Symbol USB barcode to serial driver 3 * 4 * Copyright (C) 2009 Greg Kroah-Hartman <gregkh@suse.de> 5 * Copyright (C) 2009 Novell Inc. 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License version --- 255 unchanged lines hidden (view full) --- 264static void symbol_release(struct usb_serial *serial) 265{ 266 struct symbol_private *priv = usb_get_serial_data(serial); 267 268 kfree(priv->int_buffer); 269 kfree(priv); 270} 271 |
272static struct usb_driver symbol_driver = { 273 .name = "symbol", 274 .id_table = id_table, 275}; 276 | |
277static struct usb_serial_driver symbol_device = { 278 .driver = { 279 .owner = THIS_MODULE, 280 .name = "symbol", 281 }, 282 .id_table = id_table, 283 .num_ports = 1, 284 .attach = symbol_startup, --- 4 unchanged lines hidden (view full) --- 289 .throttle = symbol_throttle, 290 .unthrottle = symbol_unthrottle, 291}; 292 293static struct usb_serial_driver * const serial_drivers[] = { 294 &symbol_device, NULL 295}; 296 | 272static struct usb_serial_driver symbol_device = { 273 .driver = { 274 .owner = THIS_MODULE, 275 .name = "symbol", 276 }, 277 .id_table = id_table, 278 .num_ports = 1, 279 .attach = symbol_startup, --- 4 unchanged lines hidden (view full) --- 284 .throttle = symbol_throttle, 285 .unthrottle = symbol_unthrottle, 286}; 287 288static struct usb_serial_driver * const serial_drivers[] = { 289 &symbol_device, NULL 290}; 291 |
297module_usb_serial_driver(symbol_driver, serial_drivers); | 292module_usb_serial_driver(serial_drivers, id_table); |
298 299MODULE_LICENSE("GPL"); 300 301module_param(debug, bool, S_IRUGO | S_IWUSR); 302MODULE_PARM_DESC(debug, "Debug enabled or not"); | 293 294MODULE_LICENSE("GPL"); 295 296module_param(debug, bool, S_IRUGO | S_IWUSR); 297MODULE_PARM_DESC(debug, "Debug enabled or not"); |