hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/drivers/usb/gadget/function/f_uac1_legacy.c
....@@ -54,8 +54,8 @@
5454 .bLength = UAC_DT_AC_HEADER_LENGTH,
5555 .bDescriptorType = USB_DT_CS_INTERFACE,
5656 .bDescriptorSubtype = UAC_HEADER,
57
- .bcdADC = __constant_cpu_to_le16(0x0100),
58
- .wTotalLength = __constant_cpu_to_le16(UAC_DT_TOTAL_LENGTH),
57
+ .bcdADC = cpu_to_le16(0x0100),
58
+ .wTotalLength = cpu_to_le16(UAC_DT_TOTAL_LENGTH),
5959 .bInCollection = F_AUDIO_NUM_INTERFACES,
6060 .baInterfaceNr = {
6161 /* Interface number of the first AudioStream interface */
....@@ -183,7 +183,7 @@
183183 .bDescriptorSubtype = UAC_EP_GENERAL,
184184 .bmAttributes = 1,
185185 .bLockDelayUnits = 1,
186
- .wLockDelay = __constant_cpu_to_le16(1),
186
+ .wLockDelay = cpu_to_le16(1),
187187 };
188188
189189 static struct usb_descriptor_header *f_audio_desc[] = {
....@@ -759,8 +759,6 @@
759759 audio->out_ep = ep;
760760 audio->out_ep->desc = &as_out_ep_desc;
761761
762
- status = -ENOMEM;
763
-
764762 /* copy descriptors, and track endpoint copies */
765763 status = usb_assign_descriptors(f, f_audio_desc, f_audio_desc, NULL,
766764 NULL);
....@@ -1023,4 +1021,5 @@
10231021
10241022 DECLARE_USB_FUNCTION_INIT(uac1_legacy, f_audio_alloc_inst, f_audio_alloc);
10251023 MODULE_LICENSE("GPL");
1024
+MODULE_IMPORT_NS(VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver);
10261025 MODULE_AUTHOR("Bryan Wu");