usb: musb: gadget: use variables according to their names in rxstate()
authorSergei Shtylyov <sshtylyov@ru.mvista.com>
Mon, 16 Jul 2012 19:25:04 +0000 (23:25 +0400)
committerFelipe Balbi <balbi@ti.com>
Fri, 3 Aug 2012 06:34:38 +0000 (09:34 +0300)
commitf0443afd1d82b07305df1511a6055311047fdfc6
treefe467995647aa46f71733ee85ca4887cbcb264f3
parent0d7614f09c1ebdbaa1599a5aba7593f147bf96ee
usb: musb: gadget: use variables according to their names in rxstate()

In rxstate(), improper types are given to 'fifo_count' and 'len' variables, and
these variables are not used in accordance to their names (up to the certain
point), i.e. 'len' to hold the size of a packet in the RX FIFO, and 'fifo_count'
to hold a difference between 'request->length' and 'request->actual'...
Interchange the variables up to the point where their use starts to make sense
again.

Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/musb/musb_gadget.c