diff options
author | Sebastian Andrzej Siewior <bigeasy@linutronix.de> | 2012-09-06 14:11:18 -0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2012-09-10 09:12:52 -0400 |
commit | 18786da4853017d983ff6911648543ca617c12d1 (patch) | |
tree | d9e4ccb116ab9f6063f0662403462ed451c56a8d /drivers/usb/gadget/tcm_usb_gadget.h | |
parent | 5a175bb84d7344fbe5e26cf61b597129e7c80564 (diff) |
usb: gadget: initialize the strings in tcm_usb_gadget properly
I have no idea what I've been thinking while I was doing this in the first
place. Now the strings are initialized properly and reported by lsusb.
Cc: stable@vger.kernel.org # v3.5
Acked-by: Michal Nazarewicz <mina86@mina86.com>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget/tcm_usb_gadget.h')
-rw-r--r-- | drivers/usb/gadget/tcm_usb_gadget.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/drivers/usb/gadget/tcm_usb_gadget.h b/drivers/usb/gadget/tcm_usb_gadget.h index bb18999a9a8d..9d32ec30f4e4 100644 --- a/drivers/usb/gadget/tcm_usb_gadget.h +++ b/drivers/usb/gadget/tcm_usb_gadget.h | |||
@@ -16,12 +16,14 @@ | |||
16 | #define UASP_SS_EP_COMP_LOG_STREAMS 4 | 16 | #define UASP_SS_EP_COMP_LOG_STREAMS 4 |
17 | #define UASP_SS_EP_COMP_NUM_STREAMS (1 << UASP_SS_EP_COMP_LOG_STREAMS) | 17 | #define UASP_SS_EP_COMP_NUM_STREAMS (1 << UASP_SS_EP_COMP_LOG_STREAMS) |
18 | 18 | ||
19 | #define USB_G_STR_MANUFACTOR 1 | 19 | enum { |
20 | #define USB_G_STR_PRODUCT 2 | 20 | USB_G_STR_MANUFACTOR, |
21 | #define USB_G_STR_SERIAL 3 | 21 | USB_G_STR_PRODUCT, |
22 | #define USB_G_STR_CONFIG 4 | 22 | USB_G_STR_SERIAL, |
23 | #define USB_G_STR_INT_UAS 5 | 23 | USB_G_STR_CONFIG, |
24 | #define USB_G_STR_INT_BBB 6 | 24 | USB_G_STR_INT_UAS, |
25 | USB_G_STR_INT_BBB, | ||
26 | }; | ||
25 | 27 | ||
26 | #define USB_G_ALT_INT_BBB 0 | 28 | #define USB_G_ALT_INT_BBB 0 |
27 | #define USB_G_ALT_INT_UAS 1 | 29 | #define USB_G_ALT_INT_UAS 1 |