Commit 0a855776 authored by Yoshihiro Shimoda's avatar Yoshihiro Shimoda Committed by Felipe Balbi

usb: gadget: r8a66597-udc: change prototype of r8a66597_write_fifo

Signed-off-by: default avatarYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 276532ba
...@@ -723,7 +723,7 @@ static void irq_ep0_write(struct r8a66597_ep *ep, struct r8a66597_request *req) ...@@ -723,7 +723,7 @@ static void irq_ep0_write(struct r8a66597_ep *ep, struct r8a66597_request *req)
/* write fifo */ /* write fifo */
if (req->req.buf) { if (req->req.buf) {
if (size > 0) if (size > 0)
r8a66597_write_fifo(r8a66597, ep->fifoaddr, buf, size); r8a66597_write_fifo(r8a66597, ep, buf, size);
if ((size == 0) || ((size % ep->ep.maxpacket) != 0)) if ((size == 0) || ((size % ep->ep.maxpacket) != 0))
r8a66597_bset(r8a66597, BVAL, ep->fifoctr); r8a66597_bset(r8a66597, BVAL, ep->fifoctr);
} }
...@@ -770,7 +770,7 @@ static void irq_packet_write(struct r8a66597_ep *ep, ...@@ -770,7 +770,7 @@ static void irq_packet_write(struct r8a66597_ep *ep,
/* write fifo */ /* write fifo */
if (req->req.buf) { if (req->req.buf) {
r8a66597_write_fifo(r8a66597, ep->fifoaddr, buf, size); r8a66597_write_fifo(r8a66597, ep, buf, size);
if ((size == 0) if ((size == 0)
|| ((size % ep->ep.maxpacket) != 0) || ((size % ep->ep.maxpacket) != 0)
|| ((bufsize != ep->ep.maxpacket) || ((bufsize != ep->ep.maxpacket)
......
...@@ -173,11 +173,11 @@ static inline void r8a66597_write(struct r8a66597 *r8a66597, u16 val, ...@@ -173,11 +173,11 @@ static inline void r8a66597_write(struct r8a66597 *r8a66597, u16 val,
} }
static inline void r8a66597_write_fifo(struct r8a66597 *r8a66597, static inline void r8a66597_write_fifo(struct r8a66597 *r8a66597,
unsigned long offset, struct r8a66597_ep *ep,
unsigned char *buf, unsigned char *buf,
int len) int len)
{ {
void __iomem *fifoaddr = r8a66597->reg + offset; void __iomem *fifoaddr = r8a66597->reg + ep->fifoaddr;
int adj = 0; int adj = 0;
int i; int i;
......
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