summaryrefslogtreecommitdiff
path: root/drivers/staging/line6/driver.c
diff options
context:
space:
mode:
authorChris Rorvick <chris@rorvick.com>2015-01-12 12:42:40 -0800
committerTakashi Iwai <tiwai@suse.de>2015-01-12 22:23:59 +0100
commit410dca8d99ae508078c90414b19f1758c1b4d6fd (patch)
tree553409975ef76f49de7878435c2db899b554b828 /drivers/staging/line6/driver.c
parentdaf54a59f37cb156f4d3044810ac4fe2fdb2b208 (diff)
staging: line6: Define a device type enum
Define an enum containing the supported devices and associate each entry in the device table to the respective value. Signed-off-by: Chris Rorvick <chris@rorvick.com> Reviewed-by: Stefan Hajnoczi <stefanha@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'drivers/staging/line6/driver.c')
-rw-r--r--drivers/staging/line6/driver.c54
1 files changed, 36 insertions, 18 deletions
diff --git a/drivers/staging/line6/driver.c b/drivers/staging/line6/driver.c
index a263bce95414..2797e4132cfa 100644
--- a/drivers/staging/line6/driver.c
+++ b/drivers/staging/line6/driver.c
@@ -34,24 +34,42 @@
/* table of devices that work with this driver */
static const struct usb_device_id line6_id_table[] = {
- { LINE6_DEVICE(LINE6_DEVID_BASSPODXT) },
- { LINE6_DEVICE(LINE6_DEVID_BASSPODXTLIVE) },
- { LINE6_DEVICE(LINE6_DEVID_BASSPODXTPRO) },
- { LINE6_DEVICE(LINE6_DEVID_GUITARPORT) },
- { LINE6_DEVICE(LINE6_DEVID_POCKETPOD) },
- { LINE6_DEVICE(LINE6_DEVID_PODHD300) },
- { LINE6_DEVICE(LINE6_DEVID_PODHD400) },
- { LINE6_DEVICE(LINE6_DEVID_PODHD500) },
- { LINE6_DEVICE(LINE6_DEVID_PODSTUDIO_GX) },
- { LINE6_DEVICE(LINE6_DEVID_PODSTUDIO_UX1) },
- { LINE6_DEVICE(LINE6_DEVID_PODSTUDIO_UX2) },
- { LINE6_DEVICE(LINE6_DEVID_PODXT) },
- { LINE6_DEVICE(LINE6_DEVID_PODXTLIVE) },
- { LINE6_DEVICE(LINE6_DEVID_PODXTPRO) },
- { LINE6_DEVICE(LINE6_DEVID_TONEPORT_GX) },
- { LINE6_DEVICE(LINE6_DEVID_TONEPORT_UX1) },
- { LINE6_DEVICE(LINE6_DEVID_TONEPORT_UX2) },
- { LINE6_DEVICE(LINE6_DEVID_VARIAX) },
+ { LINE6_DEVICE(LINE6_DEVID_BASSPODXT),
+ .driver_info = LINE6_BASSPODXT },
+ { LINE6_DEVICE(LINE6_DEVID_BASSPODXTLIVE),
+ .driver_info = LINE6_BASSPODXTLIVE },
+ { LINE6_DEVICE(LINE6_DEVID_BASSPODXTPRO),
+ .driver_info = LINE6_BASSPODXTPRO },
+ { LINE6_DEVICE(LINE6_DEVID_GUITARPORT),
+ .driver_info = LINE6_GUITARPORT },
+ { LINE6_DEVICE(LINE6_DEVID_POCKETPOD),
+ .driver_info = LINE6_POCKETPOD },
+ { LINE6_DEVICE(LINE6_DEVID_PODHD300),
+ .driver_info = LINE6_PODHD300 },
+ { LINE6_DEVICE(LINE6_DEVID_PODHD400),
+ .driver_info = LINE6_PODHD400 },
+ { LINE6_DEVICE(LINE6_DEVID_PODHD500),
+ .driver_info = LINE6_PODHD500 },
+ { LINE6_DEVICE(LINE6_DEVID_PODSTUDIO_GX),
+ .driver_info = LINE6_PODSTUDIO_GX },
+ { LINE6_DEVICE(LINE6_DEVID_PODSTUDIO_UX1),
+ .driver_info = LINE6_PODSTUDIO_UX1 },
+ { LINE6_DEVICE(LINE6_DEVID_PODSTUDIO_UX2),
+ .driver_info = LINE6_PODSTUDIO_UX2 },
+ { LINE6_DEVICE(LINE6_DEVID_PODXT),
+ .driver_info = LINE6_PODXT },
+ { LINE6_DEVICE(LINE6_DEVID_PODXTLIVE),
+ .driver_info = LINE6_PODXTLIVE },
+ { LINE6_DEVICE(LINE6_DEVID_PODXTPRO),
+ .driver_info = LINE6_PODXTPRO },
+ { LINE6_DEVICE(LINE6_DEVID_TONEPORT_GX),
+ .driver_info = LINE6_TONEPORT_GX },
+ { LINE6_DEVICE(LINE6_DEVID_TONEPORT_UX1),
+ .driver_info = LINE6_TONEPORT_UX1 },
+ { LINE6_DEVICE(LINE6_DEVID_TONEPORT_UX2),
+ .driver_info = LINE6_TONEPORT_UX2 },
+ { LINE6_DEVICE(LINE6_DEVID_VARIAX),
+ .driver_info = LINE6_VARIAX },
{}
};