]> git.dujemihanovic.xyz Git - u-boot.git/commit
usb: mv_udc: Implement better qTD item accessor
authorMarek Vasut <marex@denx.de>
Wed, 10 Jul 2013 01:16:41 +0000 (03:16 +0200)
committerMarek Vasut <marex@denx.de>
Mon, 29 Jul 2013 21:01:33 +0000 (23:01 +0200)
commitede709c0d293d980ceb6596132aa39941e3e1c7f
treeae5dc96a10392d58e2252804f1b614c3f4df51ed
parent8a095a68ce8e7989dec6af4011f0f41bbc554f22
usb: mv_udc: Implement better qTD item accessor

The code for retrieving qTD item 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