]> git.dujemihanovic.xyz Git - u-boot.git/commit
usb: ci_udc: use a single descriptor for ep0
authorStephen Warren <swarren@nvidia.com>
Thu, 29 May 2014 20:53:01 +0000 (14:53 -0600)
committerMarek Vasut <marex@denx.de>
Sun, 1 Jun 2014 17:22:40 +0000 (19:22 +0200)
commit054731b09e1944cdb130b755ac0f6c188920e98a
treef292c70f5b989e8b842cb3060ef80e17874276db
parent7484d84cbb58e01ff1d2d458d899ea1fba012724
usb: ci_udc: use a single descriptor for ep0

ci_udc currently points ep->desc at separate descriptors for IN and OUT.
These descriptors only differ in the ep address IN/OUT field. Modify the
code to use a single descriptor, and change that descriptor's ep address
to indicate IN/OUT as required. This removes some data duplication.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
drivers/usb/gadget/ci_udc.c