]> git.dujemihanovic.xyz Git - u-boot.git/commit
usb: ci_udc: lift ilist size calculations to global scope
authorStephen Warren <swarren@nvidia.com>
Tue, 1 Jul 2014 17:41:15 +0000 (11:41 -0600)
committerMarek Vasut <marex@denx.de>
Wed, 2 Jul 2014 13:45:38 +0000 (15:45 +0200)
commit06b38fcbae9294d337578d583309f99de12a0d23
treea3e8afc9cc30278cfde7c2184093c372c5c8cc23
parent8d7c39d3e8ad43dab3158220f3347186e6f1aa66
usb: ci_udc: lift ilist size calculations to global scope

This will allow functions other than ci_udc_probe() to make use of the
constants in a future change.

This in turn requires converting the const int variables to #defines,
since the initialization of one global const int can't depend on the
value of another const int; the compiler thinks it's non-constant if
that dependency exists.

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