summaryrefslogtreecommitdiff
path: root/drivers/usb/dwc2/gadget.c
diff options
context:
space:
mode:
authorMian Yousaf Kaukab <yousaf.kaukab@intel.com>2015-01-09 15:39:03 +0300
committerFelipe Balbi <balbi@ti.com>2015-01-13 00:34:27 +0300
commit8a20fa457eb5a8d247fd82d4bd3c04225fd2f253 (patch)
treec9b3f4c65494305d2c881305b2828273285f1e56 /drivers/usb/dwc2/gadget.c
parent83d982234ee65900521e763161f409b29f89b8f6 (diff)
downloadlinux-8a20fa457eb5a8d247fd82d4bd3c04225fd2f253.tar.xz
usb: dwc2: gadget: rename sent_zlp to send_zlp
This flag is set before sending the zlp. So use present tense instead of the past tense. Tested-by: Robert Baldyga <r.baldyga@samsung.com> Acked-by: Paul Zimmerman <paulz@synopsys.com> Signed-off-by: Mian Yousaf Kaukab <yousaf.kaukab@intel.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/dwc2/gadget.c')
-rw-r--r--drivers/usb/dwc2/gadget.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/usb/dwc2/gadget.c b/drivers/usb/dwc2/gadget.c
index 65ec0f2dfab1..5fdc3f54f2a8 100644
--- a/drivers/usb/dwc2/gadget.c
+++ b/drivers/usb/dwc2/gadget.c
@@ -607,7 +607,7 @@ static void s3c_hsotg_start_req(struct dwc2_hsotg *hsotg,
/* Test if zlp is actually required. */
if ((ureq->length >= hs_ep->ep.maxpacket) &&
!(ureq->length % hs_ep->ep.maxpacket))
- hs_ep->sent_zlp = 1;
+ hs_ep->send_zlp = 1;
}
epsize |= DXEPTSIZ_PKTCNT(packets);
@@ -1193,7 +1193,7 @@ static void s3c_hsotg_enqueue_setup(struct dwc2_hsotg *hsotg)
}
hsotg->eps_out[0]->dir_in = 0;
- hsotg->eps_out[0]->sent_zlp = 0;
+ hsotg->eps_out[0]->send_zlp = 0;
hsotg->ep0_state = DWC2_EP0_SETUP;
ret = s3c_hsotg_ep_queue(&hsotg->eps_out[0]->ep, req, GFP_ATOMIC);
@@ -1757,9 +1757,9 @@ static void s3c_hsotg_complete_in(struct dwc2_hsotg *hsotg,
}
/* Zlp for all endpoints, for ep0 only in DATA IN stage */
- if (hs_ep->sent_zlp) {
+ if (hs_ep->send_zlp) {
s3c_hsotg_program_zlp(hsotg, hs_ep);
- hs_ep->sent_zlp = 0;
+ hs_ep->send_zlp = 0;
/* transfer will be completed on next complete interrupt */
return;
}