diff options
author | Felipe Balbi <balbi@ti.com> | 2012-05-21 07:22:41 -0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2012-06-03 16:08:19 -0400 |
commit | 788a23f49686d82fa95b83ac7752d6322f1dad44 (patch) | |
tree | 702876cfb74b83648cd3f5c6b2489676cad3a606 /drivers/usb/dwc3 | |
parent | c74c6d4a024d95e81283ee4c38be6fa7baee27f9 (diff) |
usb: dwc3: ep0: align on function signature
On our Transfer Not Ready handlers, only
dwc3_ep0_do_control_status() had a different
list of parameters.
Align on the parameters in order to keep consistency.
No functional changes.
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/dwc3')
-rw-r--r-- | drivers/usb/dwc3/ep0.c | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/drivers/usb/dwc3/ep0.c b/drivers/usb/dwc3/ep0.c index 477127aecb98..75d5722db93b 100644 --- a/drivers/usb/dwc3/ep0.c +++ b/drivers/usb/dwc3/ep0.c | |||
@@ -54,7 +54,7 @@ | |||
54 | #include "gadget.h" | 54 | #include "gadget.h" |
55 | #include "io.h" | 55 | #include "io.h" |
56 | 56 | ||
57 | static void dwc3_ep0_do_control_status(struct dwc3 *dwc, u32 epnum); | 57 | static void __dwc3_ep0_do_control_status(struct dwc3 *dwc, struct dwc3_ep *dep); |
58 | static void __dwc3_ep0_do_control_data(struct dwc3 *dwc, | 58 | static void __dwc3_ep0_do_control_data(struct dwc3 *dwc, |
59 | struct dwc3_ep *dep, struct dwc3_request *req); | 59 | struct dwc3_ep *dep, struct dwc3_request *req); |
60 | 60 | ||
@@ -160,7 +160,7 @@ static int __dwc3_gadget_ep0_queue(struct dwc3_ep *dep, | |||
160 | dwc->delayed_status = false; | 160 | dwc->delayed_status = false; |
161 | 161 | ||
162 | if (dwc->ep0state == EP0_STATUS_PHASE) | 162 | if (dwc->ep0state == EP0_STATUS_PHASE) |
163 | dwc3_ep0_do_control_status(dwc, 1); | 163 | __dwc3_ep0_do_control_status(dwc, dwc->eps[1]); |
164 | else | 164 | else |
165 | dev_dbg(dwc->dev, "too early for delayed status\n"); | 165 | dev_dbg(dwc->dev, "too early for delayed status\n"); |
166 | } | 166 | } |
@@ -875,10 +875,8 @@ static int dwc3_ep0_start_control_status(struct dwc3_ep *dep) | |||
875 | dwc->ctrl_req_addr, 0, type); | 875 | dwc->ctrl_req_addr, 0, type); |
876 | } | 876 | } |
877 | 877 | ||
878 | static void dwc3_ep0_do_control_status(struct dwc3 *dwc, u32 epnum) | 878 | static void __dwc3_ep0_do_control_status(struct dwc3 *dwc, struct dwc3_ep *dep) |
879 | { | 879 | { |
880 | struct dwc3_ep *dep = dwc->eps[epnum]; | ||
881 | |||
882 | if (dwc->resize_fifos) { | 880 | if (dwc->resize_fifos) { |
883 | dev_dbg(dwc->dev, "starting to resize fifos\n"); | 881 | dev_dbg(dwc->dev, "starting to resize fifos\n"); |
884 | dwc3_gadget_resize_tx_fifos(dwc); | 882 | dwc3_gadget_resize_tx_fifos(dwc); |
@@ -888,6 +886,14 @@ static void dwc3_ep0_do_control_status(struct dwc3 *dwc, u32 epnum) | |||
888 | WARN_ON(dwc3_ep0_start_control_status(dep)); | 886 | WARN_ON(dwc3_ep0_start_control_status(dep)); |
889 | } | 887 | } |
890 | 888 | ||
889 | static void dwc3_ep0_do_control_status(struct dwc3 *dwc, | ||
890 | const struct dwc3_event_depevt *event) | ||
891 | { | ||
892 | struct dwc3_ep *dep = dwc->eps[event->endpoint_number]; | ||
893 | |||
894 | __dwc3_ep0_do_control_status(dwc, dep); | ||
895 | } | ||
896 | |||
891 | static void dwc3_ep0_xfernotready(struct dwc3 *dwc, | 897 | static void dwc3_ep0_xfernotready(struct dwc3 *dwc, |
892 | const struct dwc3_event_depevt *event) | 898 | const struct dwc3_event_depevt *event) |
893 | { | 899 | { |
@@ -988,7 +994,7 @@ static void dwc3_ep0_xfernotready(struct dwc3 *dwc, | |||
988 | return; | 994 | return; |
989 | } | 995 | } |
990 | 996 | ||
991 | dwc3_ep0_do_control_status(dwc, event->endpoint_number); | 997 | dwc3_ep0_do_control_status(dwc, event); |
992 | } | 998 | } |
993 | } | 999 | } |
994 | 1000 | ||