diff options
Diffstat (limited to 'drivers/usb/gadget/gmidi.c')
-rw-r--r-- | drivers/usb/gadget/gmidi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/usb/gadget/gmidi.c b/drivers/usb/gadget/gmidi.c index ff3a8513e64d..7f4d4828e3aa 100644 --- a/drivers/usb/gadget/gmidi.c +++ b/drivers/usb/gadget/gmidi.c | |||
@@ -229,7 +229,7 @@ static const struct usb_ac_header_descriptor_1 ac_header_desc = { | |||
229 | .bDescriptorType = USB_DT_CS_INTERFACE, | 229 | .bDescriptorType = USB_DT_CS_INTERFACE, |
230 | .bDescriptorSubtype = USB_MS_HEADER, | 230 | .bDescriptorSubtype = USB_MS_HEADER, |
231 | .bcdADC = __constant_cpu_to_le16(0x0100), | 231 | .bcdADC = __constant_cpu_to_le16(0x0100), |
232 | .wTotalLength = USB_DT_AC_HEADER_SIZE(1), | 232 | .wTotalLength = __constant_cpu_to_le16(USB_DT_AC_HEADER_SIZE(1)), |
233 | .bInCollection = 1, | 233 | .bInCollection = 1, |
234 | .baInterfaceNr = { | 234 | .baInterfaceNr = { |
235 | [0] = GMIDI_MS_INTERFACE, | 235 | [0] = GMIDI_MS_INTERFACE, |
@@ -253,9 +253,9 @@ static const struct usb_ms_header_descriptor ms_header_desc = { | |||
253 | .bDescriptorType = USB_DT_CS_INTERFACE, | 253 | .bDescriptorType = USB_DT_CS_INTERFACE, |
254 | .bDescriptorSubtype = USB_MS_HEADER, | 254 | .bDescriptorSubtype = USB_MS_HEADER, |
255 | .bcdMSC = __constant_cpu_to_le16(0x0100), | 255 | .bcdMSC = __constant_cpu_to_le16(0x0100), |
256 | .wTotalLength = USB_DT_MS_HEADER_SIZE | 256 | .wTotalLength = __constant_cpu_to_le16(USB_DT_MS_HEADER_SIZE |
257 | + 2*USB_DT_MIDI_IN_SIZE | 257 | + 2*USB_DT_MIDI_IN_SIZE |
258 | + 2*USB_DT_MIDI_OUT_SIZE(1), | 258 | + 2*USB_DT_MIDI_OUT_SIZE(1)), |
259 | }; | 259 | }; |
260 | 260 | ||
261 | #define JACK_IN_EMB 1 | 261 | #define JACK_IN_EMB 1 |