diff options
Diffstat (limited to 'hw')
-rw-r--r-- | hw/usb_gadget.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/hw/usb_gadget.h b/hw/usb_gadget.h index 2db9566..fb8288e 100644 --- a/hw/usb_gadget.h +++ b/hw/usb_gadget.h @@ -247,7 +247,7 @@ out: return -ENOMEM; } -#define DEFINE_USB_FUNCTION_WITH_SERVICE(_id, _name) \ +#define DEFINE_USB_FUNCTION_WITH_SERVICE(_id, _name, _service) \ static struct usb_function_with_service _##_name##_function = { \ .func = { \ .function_group = USB_FUNCTION_GROUP_WITH_SERVICE, \ @@ -257,11 +257,11 @@ out: .free_func = free_func_with_service, \ .clone = clone_func_with_service, \ }, \ - .service = NULL, \ + .service = _service, \ } -DEFINE_USB_FUNCTION_WITH_SERVICE(USB_FUNCTION_SDB, sdb); -DEFINE_USB_FUNCTION_WITH_SERVICE(USB_FUNCTION_MTP, mtp); +DEFINE_USB_FUNCTION_WITH_SERVICE(USB_FUNCTION_SDB, sdb, "sdbd"); +DEFINE_USB_FUNCTION_WITH_SERVICE(USB_FUNCTION_MTP, mtp, "mtp-responder"); #define MAKE_FUNC_AVAILABLE(_name, _vname) \ [FUNC_IDX_FROM_MASK(USB_FUNCTION_##_name)] = &_##_vname##_function |