summaryrefslogtreecommitdiffstats
path: root/sound/usb/line6/driver.h
diff options
context:
space:
mode:
authorChris Rorvick <chris@rorvick.com>2015-02-07 17:43:19 +0100
committerTakashi Iwai <tiwai@suse.de>2015-02-08 09:07:07 +0100
commit12865cac38cc9e808ce8b479f4bb12fd00bfee7c (patch)
tree11aaa0bf5e70f2ea7d47fe4f6094033999305d03 /sound/usb/line6/driver.h
parentALSA: line6: Pass toneport pointer to toneport_has_led() (diff)
downloadlinux-12865cac38cc9e808ce8b479f4bb12fd00bfee7c.tar.xz
linux-12865cac38cc9e808ce8b479f4bb12fd00bfee7c.zip
ALSA: line6: Pass driver name to line6_probe()
Provide a unique name for each driver instead of using "line6usb" for all of them. This will allow for different configurations based on the driver type. Signed-off-by: Chris Rorvick <chris@rorvick.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/usb/line6/driver.h')
-rw-r--r--sound/usb/line6/driver.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/usb/line6/driver.h b/sound/usb/line6/driver.h
index 2276b78f3562..92a662a0469e 100644
--- a/sound/usb/line6/driver.h
+++ b/sound/usb/line6/driver.h
@@ -18,8 +18,6 @@
#include "midi.h"
-#define DRIVER_NAME "line6usb"
-
#define USB_INTERVALS_PER_SECOND 1000
/* Fallback USB interval and max packet size values */
@@ -168,6 +166,7 @@ extern int line6_write_data(struct usb_line6 *line6, int address, void *data,
int line6_probe(struct usb_interface *interface,
const struct usb_device_id *id,
+ const char *driver_name,
const struct line6_properties *properties,
int (*private_init)(struct usb_line6 *, const struct usb_device_id *id),
size_t data_size);