usb: gadget: mv_udc: rewrite fifo flush
authorNeil Zhang <zhangwm@marvell.com>
Wed, 12 Oct 2011 08:49:33 +0000 (16:49 +0800)
committerFelipe Balbi <balbi@ti.com>
Thu, 13 Oct 2011 17:42:04 +0000 (20:42 +0300)
commit0c70840b22d9f3b762f21a28bface1a42c0c5ba2
treee3bc8a63568dd0ddae3772b54b6ed15dca307d30
parent615268b05f6c719f5151c351022aa79ab73a0898
usb: gadget: mv_udc: rewrite fifo flush

1: Add parameter check.
2: For controller endpoint, we need to flush in and out directions.
3: delete redundant code, make it more readable.

Signed-off-by: Neil Zhang <zhangwm@marvell.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/mv_udc_core.c