driver.c (6ccd93bdb989507717edb375d40534f1177822c5) driver.c (12865cac38cc9e808ce8b479f4bb12fd00bfee7c)
1/*
2 * Line 6 Linux USB driver
3 *
4 * Copyright (C) 2004-2010 Markus Grabner (grabner@icg.tugraz.at)
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 as
8 * published by the Free Software Foundation, version 2.

--- 466 unchanged lines hidden (view full) ---

475 return 0;
476}
477
478/*
479 Probe USB device.
480*/
481int line6_probe(struct usb_interface *interface,
482 const struct usb_device_id *id,
1/*
2 * Line 6 Linux USB driver
3 *
4 * Copyright (C) 2004-2010 Markus Grabner (grabner@icg.tugraz.at)
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 as
8 * published by the Free Software Foundation, version 2.

--- 466 unchanged lines hidden (view full) ---

475 return 0;
476}
477
478/*
479 Probe USB device.
480*/
481int line6_probe(struct usb_interface *interface,
482 const struct usb_device_id *id,
483 const char *driver_name,
483 const struct line6_properties *properties,
484 int (*private_init)(struct usb_line6 *, const struct usb_device_id *id),
485 size_t data_size)
486{
487 struct usb_device *usbdev = interface_to_usbdev(interface);
488 struct snd_card *card;
489 struct usb_line6 *line6;
490 int interface_number;

--- 15 unchanged lines hidden (view full) ---

506 /* store basic data: */
507 line6 = card->private_data;
508 line6->card = card;
509 line6->properties = properties;
510 line6->usbdev = usbdev;
511 line6->ifcdev = &interface->dev;
512
513 strcpy(card->id, properties->id);
484 const struct line6_properties *properties,
485 int (*private_init)(struct usb_line6 *, const struct usb_device_id *id),
486 size_t data_size)
487{
488 struct usb_device *usbdev = interface_to_usbdev(interface);
489 struct snd_card *card;
490 struct usb_line6 *line6;
491 int interface_number;

--- 15 unchanged lines hidden (view full) ---

507 /* store basic data: */
508 line6 = card->private_data;
509 line6->card = card;
510 line6->properties = properties;
511 line6->usbdev = usbdev;
512 line6->ifcdev = &interface->dev;
513
514 strcpy(card->id, properties->id);
514 strcpy(card->driver, DRIVER_NAME);
515 strcpy(card->driver, driver_name);
515 strcpy(card->shortname, properties->name);
516 sprintf(card->longname, "Line 6 %s at USB %s", properties->name,
517 dev_name(line6->ifcdev));
518 card->private_free = line6_destruct;
519
520 usb_set_intfdata(interface, line6);
521
522 /* increment reference counters: */

--- 120 unchanged lines hidden ---
516 strcpy(card->shortname, properties->name);
517 sprintf(card->longname, "Line 6 %s at USB %s", properties->name,
518 dev_name(line6->ifcdev));
519 card->private_free = line6_destruct;
520
521 usb_set_intfdata(interface, line6);
522
523 /* increment reference counters: */

--- 120 unchanged lines hidden ---