diff options
Diffstat (limited to 'drivers/usb/gadget/function/f_uac2.c')
-rw-r--r-- | drivers/usb/gadget/function/f_uac2.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/usb/gadget/function/f_uac2.c b/drivers/usb/gadget/function/f_uac2.c index 186d4b162524..cd214ec8a601 100644 --- a/drivers/usb/gadget/function/f_uac2.c +++ b/drivers/usb/gadget/function/f_uac2.c | |||
@@ -598,18 +598,6 @@ static struct usb_gadget_strings *fn_strings[] = { | |||
598 | NULL, | 598 | NULL, |
599 | }; | 599 | }; |
600 | 600 | ||
601 | static struct usb_qualifier_descriptor devqual_desc = { | ||
602 | .bLength = sizeof devqual_desc, | ||
603 | .bDescriptorType = USB_DT_DEVICE_QUALIFIER, | ||
604 | |||
605 | .bcdUSB = cpu_to_le16(0x200), | ||
606 | .bDeviceClass = USB_CLASS_MISC, | ||
607 | .bDeviceSubClass = 0x02, | ||
608 | .bDeviceProtocol = 0x01, | ||
609 | .bNumConfigurations = 1, | ||
610 | .bRESERVED = 0, | ||
611 | }; | ||
612 | |||
613 | static struct usb_interface_assoc_descriptor iad_desc = { | 601 | static struct usb_interface_assoc_descriptor iad_desc = { |
614 | .bLength = sizeof iad_desc, | 602 | .bLength = sizeof iad_desc, |
615 | .bDescriptorType = USB_DT_INTERFACE_ASSOCIATION, | 603 | .bDescriptorType = USB_DT_INTERFACE_ASSOCIATION, |
@@ -1292,6 +1280,7 @@ in_rq_cur(struct usb_function *fn, const struct usb_ctrlrequest *cr) | |||
1292 | 1280 | ||
1293 | if (control_selector == UAC2_CS_CONTROL_SAM_FREQ) { | 1281 | if (control_selector == UAC2_CS_CONTROL_SAM_FREQ) { |
1294 | struct cntrl_cur_lay3 c; | 1282 | struct cntrl_cur_lay3 c; |
1283 | memset(&c, 0, sizeof(struct cntrl_cur_lay3)); | ||
1295 | 1284 | ||
1296 | if (entity_id == USB_IN_CLK_ID) | 1285 | if (entity_id == USB_IN_CLK_ID) |
1297 | c.dCUR = p_srate; | 1286 | c.dCUR = p_srate; |