usb: gadget: mass_storage: Use static array for luns
authorKrzysztof Opasiak <k.opasiak@samsung.com>
Fri, 31 Jul 2015 11:46:07 +0000 (13:46 +0200)
committerFelipe Balbi <balbi@ti.com>
Fri, 31 Jul 2015 14:01:19 +0000 (09:01 -0500)
commitdd02ea5a33059e4a753ae8bb877b698c54ee2907
treeda31ce46795d007f422546cc930ffe5f4a136d23
parent5542f58c95aef67bc9016855f7c0bd6117b43100
usb: gadget: mass_storage: Use static array for luns

This patch replace dynamicly allocated luns array with static one.
This simplifies the code of mass storage function and modules.

Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
Acked-by: Michal Nazarewicz <mina86@mina86.com>
drivers/usb/gadget/function/f_mass_storage.c
drivers/usb/gadget/function/f_mass_storage.h
drivers/usb/gadget/legacy/acm_ms.c
drivers/usb/gadget/legacy/mass_storage.c
drivers/usb/gadget/legacy/multi.c
drivers/usb/gadget/legacy/nokia.c