|
@@ -110,18 +110,8 @@ static inline void dwc3_gadget_move_request_queued(struct dwc3_request *req)
|
|
list_move_tail(&req->list, &dep->req_queued);
|
|
list_move_tail(&req->list, &dep->req_queued);
|
|
}
|
|
}
|
|
|
|
|
|
-#if defined(CONFIG_USB_GADGET_DWC3) || defined(CONFIG_USB_GADGET_DWC3_MODULE)
|
|
|
|
int dwc3_gadget_init(struct dwc3 *dwc);
|
|
int dwc3_gadget_init(struct dwc3 *dwc);
|
|
void dwc3_gadget_exit(struct dwc3 *dwc);
|
|
void dwc3_gadget_exit(struct dwc3 *dwc);
|
|
-#else
|
|
|
|
-static inline int dwc3_gadget_init(struct dwc3 *dwc) { return 0; }
|
|
|
|
-static inline void dwc3_gadget_exit(struct dwc3 *dwc) { }
|
|
|
|
-static inline int dwc3_send_gadget_ep_cmd(struct dwc3 *dwc, unsigned ep,
|
|
|
|
- unsigned cmd, struct dwc3_gadget_ep_cmd_params *params)
|
|
|
|
-{
|
|
|
|
- return 0;
|
|
|
|
-}
|
|
|
|
-#endif
|
|
|
|
|
|
|
|
void dwc3_gadget_giveback(struct dwc3_ep *dep, struct dwc3_request *req,
|
|
void dwc3_gadget_giveback(struct dwc3_ep *dep, struct dwc3_request *req,
|
|
int status);
|
|
int status);
|