aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Baldyga <r.baldyga@samsung.com>2016-08-29 16:38:55 -0400
committerFelipe Balbi <felipe.balbi@linux.intel.com>2016-08-31 03:06:06 -0400
commitba48eab8866ca71e7978380cf7564cf8240f28f8 (patch)
tree602325d1bc90b4c7615506cdea4387d1f5cf4d58
parentaa381a7259c3f53727bcaa8c5f9359e940a0e3fd (diff)
usb: dwc2: gadget: change variable name to more meaningful
Since we handle FIFOs and endpoint separately, using variable named 'ep' in context of FIFO is misleading, hence we rename it to 'fifo'. Signed-off-by: Robert Baldyga <r.baldyga@samsung.com> Signed-off-by: John Youn <johnyoun@synopsys.com> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
-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 7db763e2e975..2aa41139d2d5 100644
--- a/drivers/usb/dwc2/gadget.c
+++ b/drivers/usb/dwc2/gadget.c
@@ -186,7 +186,7 @@ static void dwc2_hsotg_ctrl_epint(struct dwc2_hsotg *hsotg,
186 */ 186 */
187static void dwc2_hsotg_init_fifo(struct dwc2_hsotg *hsotg) 187static void dwc2_hsotg_init_fifo(struct dwc2_hsotg *hsotg)
188{ 188{
189 unsigned int ep; 189 unsigned int fifo;
190 unsigned int addr; 190 unsigned int addr;
191 int timeout; 191 int timeout;
192 u32 dptxfsizn; 192 u32 dptxfsizn;
@@ -217,8 +217,8 @@ static void dwc2_hsotg_init_fifo(struct dwc2_hsotg *hsotg)
217 * them to endpoints dynamically according to maxpacket size value of 217 * them to endpoints dynamically according to maxpacket size value of
218 * given endpoint. 218 * given endpoint.
219 */ 219 */
220 for (ep = 1; ep < MAX_EPS_CHANNELS; ep++) { 220 for (fifo = 1; fifo < MAX_EPS_CHANNELS; fifo++) {
221 dptxfsizn = dwc2_readl(hsotg->regs + DPTXFSIZN(ep)); 221 dptxfsizn = dwc2_readl(hsotg->regs + DPTXFSIZN(fifo));
222 222
223 val = (dptxfsizn & FIFOSIZE_DEPTH_MASK) | addr; 223 val = (dptxfsizn & FIFOSIZE_DEPTH_MASK) | addr;
224 addr += dptxfsizn >> FIFOSIZE_DEPTH_SHIFT; 224 addr += dptxfsizn >> FIFOSIZE_DEPTH_SHIFT;
@@ -226,7 +226,7 @@ static void dwc2_hsotg_init_fifo(struct dwc2_hsotg *hsotg)
226 if (addr > hsotg->fifo_mem) 226 if (addr > hsotg->fifo_mem)
227 break; 227 break;
228 228
229 dwc2_writel(val, hsotg->regs + DPTXFSIZN(ep)); 229 dwc2_writel(val, hsotg->regs + DPTXFSIZN(fifo));
230 } 230 }
231 231
232 /* 232 /*