]> git.dujemihanovic.xyz Git - u-boot.git/commit
usb: mv_udc: Implement better QH accessor
authorMarek Vasut <marex@denx.de>
Wed, 10 Jul 2013 01:16:39 +0000 (03:16 +0200)
committerMarek Vasut <marex@denx.de>
Mon, 29 Jul 2013 21:01:32 +0000 (23:01 +0200)
commitb5cd45bfad3a25db25b40cfda9e7db80e5ee65f7
tree48d1db192ec581c709eca2c9b1bece5afab41dfd
parent5804b8859a3317d3deb1e6adafc2a2604d276f1c
usb: mv_udc: Implement better QH accessor

The code for retrieving QH for particular endpoint is hard to understand,
moreover it's duplicated all over the driver. Move the code into single
nice and documented function.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Fabio Estevam <fabio.estevam@freescale.com>
Cc: Lei Wen <leiwen@marvell.com>
Cc: Otavio Salvador <otavio@ossystems.com.br>
Cc: Stefano Babic <sbabic@denx.de>
drivers/usb/gadget/mv_udc.c