Commit 156bbde9 authored by Tony Lindgren's avatar Tony Lindgren

musb_hdrc: Search and replace pFifoDest with fifo_dest

Search and replace pFifoDest with fifo_dest
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 29504121
...@@ -946,7 +946,7 @@ static int musb_h_ep0_continue(struct musb *musb, ...@@ -946,7 +946,7 @@ static int musb_h_ep0_continue(struct musb *musb,
u16 len, struct urb *urb) u16 len, struct urb *urb)
{ {
int bMore = FALSE; int bMore = FALSE;
u8 *pFifoDest = NULL; u8 *fifo_dest = NULL;
u16 fifo_count = 0; u16 fifo_count = 0;
struct musb_hw_ep *hw_ep = musb->control_ep; struct musb_hw_ep *hw_ep = musb->control_ep;
struct musb_qh *qh = hw_ep->in_qh; struct musb_qh *qh = hw_ep->in_qh;
...@@ -954,13 +954,13 @@ static int musb_h_ep0_continue(struct musb *musb, ...@@ -954,13 +954,13 @@ static int musb_h_ep0_continue(struct musb *musb,
switch (musb->ep0_stage) { switch (musb->ep0_stage) {
case MGC_END0_IN: case MGC_END0_IN:
pFifoDest = urb->transfer_buffer + urb->actual_length; fifo_dest = urb->transfer_buffer + urb->actual_length;
fifo_count = min(len, ((u16) (urb->transfer_buffer_length fifo_count = min(len, ((u16) (urb->transfer_buffer_length
- urb->actual_length))); - urb->actual_length)));
if (fifo_count < len) if (fifo_count < len)
urb->status = -EOVERFLOW; urb->status = -EOVERFLOW;
musb_read_fifo(hw_ep, fifo_count, pFifoDest); musb_read_fifo(hw_ep, fifo_count, fifo_dest);
urb->actual_length += fifo_count; urb->actual_length += fifo_count;
if (len < qh->maxpacket) { if (len < qh->maxpacket) {
...@@ -994,11 +994,11 @@ static int musb_h_ep0_continue(struct musb *musb, ...@@ -994,11 +994,11 @@ static int musb_h_ep0_continue(struct musb *musb,
- urb->actual_length))); - urb->actual_length)));
if (fifo_count) { if (fifo_count) {
pFifoDest = (u8 *) (urb->transfer_buffer fifo_dest = (u8 *) (urb->transfer_buffer
+ urb->actual_length); + urb->actual_length);
DBG(3, "Sending %d bytes to %p\n", DBG(3, "Sending %d bytes to %p\n",
fifo_count, pFifoDest); fifo_count, fifo_dest);
musb_write_fifo(hw_ep, fifo_count, pFifoDest); musb_write_fifo(hw_ep, fifo_count, fifo_dest);
urb->actual_length += fifo_count; urb->actual_length += fifo_count;
bMore = TRUE; bMore = TRUE;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment