{
struct musb_ep *musb_ep = to_musb_ep(ep);
struct musb *musb = musb_ep->musb;
- u8 nEnd = musb_ep->current_epnum;
- void __iomem *epio = musb->endpoints[nEnd].regs;
+ u8 epnum = musb_ep->current_epnum;
+ void __iomem *epio = musb->endpoints[epnum].regs;
void __iomem *mbase;
unsigned long flags;
u16 csr, int_txe;
mbase = musb->mregs;
spin_lock_irqsave(&musb->lock, flags);
- musb_ep_select(mbase, (u8) nEnd);
+ musb_ep_select(mbase, (u8) epnum);
/* disable interrupts */
int_txe = musb_readw(mbase, MUSB_INTRTXE);
- musb_writew(mbase, MUSB_INTRTXE, int_txe & ~(1 << nEnd));
+ musb_writew(mbase, MUSB_INTRTXE, int_txe & ~(1 << epnum));
if (musb_ep->is_in) {
csr = musb_readw(epio, MUSB_TXCSR);
{
int idle;
int best_diff;
- int best_end, nEnd;
+ int best_end, epnum;
struct musb_hw_ep *hw_ep = NULL;
struct list_head *head = NULL;
best_diff = 4096;
best_end = -1;
- for (nEnd = 1; nEnd < musb->nr_endpoints; nEnd++) {
+ for (epnum = 1; epnum < musb->nr_endpoints; epnum++) {
int diff;
- if (musb->periodic[nEnd])
+ if (musb->periodic[epnum])
continue;
- hw_ep = &musb->endpoints[nEnd];
+ hw_ep = &musb->endpoints[epnum];
if (hw_ep == musb->bulk_ep)
continue;
if (diff > 0 && best_diff > diff) {
best_diff = diff;
- best_end = nEnd;
+ best_end = epnum;
}
}
if (best_end < 0)