summaryrefslogtreecommitdiff
path: root/drivers/usb
diff options
context:
space:
mode:
authorFelipe Balbi <felipe.balbi@linux.intel.com>2018-03-27 10:47:48 +0300
committerFelipe Balbi <felipe.balbi@linux.intel.com>2018-05-21 10:00:50 +0300
commit320338651d331847e0520717b8a2d6ef5150d2fe (patch)
tree16935286d6d7cfe9c7d51e228ad3bf7fb548e05c /drivers/usb
parented27442e509331cd07ceb584dd01eadbdb5ee9b3 (diff)
downloadlinux-320338651d331847e0520717b8a2d6ef5150d2fe.tar.xz
usb: dwc3: gadget: move handler closer to calling site
Cleanup only, no functional changes. Just making code easier to follow. Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/dwc3/gadget.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c
index d7fb3553609c..6876f360fd67 100644
--- a/drivers/usb/dwc3/gadget.c
+++ b/drivers/usb/dwc3/gadget.c
@@ -1293,17 +1293,6 @@ static void __dwc3_gadget_start_isoc(struct dwc3 *dwc,
__dwc3_gadget_kick_transfer(dep);
}
-static void dwc3_gadget_endpoint_transfer_not_ready(struct dwc3 *dwc,
- struct dwc3_ep *dep, const struct dwc3_event_depevt *event)
-{
- u32 cur_uf, mask;
-
- mask = ~(dep->interval - 1);
- cur_uf = event->parameters & mask;
-
- __dwc3_gadget_start_isoc(dwc, dep, cur_uf);
-}
-
static int __dwc3_gadget_ep_queue(struct dwc3_ep *dep, struct dwc3_request *req)
{
struct dwc3 *dwc = dep->dwc;
@@ -2475,6 +2464,17 @@ static void dwc3_gadget_endpoint_transfer_in_progress(struct dwc3 *dwc,
}
}
+static void dwc3_gadget_endpoint_transfer_not_ready(struct dwc3 *dwc,
+ struct dwc3_ep *dep, const struct dwc3_event_depevt *event)
+{
+ u32 cur_uf, mask;
+
+ mask = ~(dep->interval - 1);
+ cur_uf = event->parameters & mask;
+
+ __dwc3_gadget_start_isoc(dwc, dep, cur_uf);
+}
+
static void dwc3_endpoint_interrupt(struct dwc3 *dwc,
const struct dwc3_event_depevt *event)
{