]> git.baikalelectronics.ru Git - kernel.git/commit
usb: gadget: FunctionFS: share VLA macros with all usb gadget files
authorAndrzej Pietrasiewicz <andrzej.p@samsung.com>
Thu, 8 May 2014 12:06:21 +0000 (14:06 +0200)
committerFelipe Balbi <balbi@ti.com>
Wed, 14 May 2014 14:37:27 +0000 (09:37 -0500)
commitf1390b2841af6140bc8bfc4b1a724d51709af38c
tree64e4c7d73805d82294c92fcfae9b0a6b0dabec91
parentbfb82da338d74c3447681f57854c15e754959e62
usb: gadget: FunctionFS: share VLA macros with all usb gadget files

Variable Length Array macros allow portable (compilable with both gcc
and clang) way of allocating a number of structures using a single
memory chunk. They can be useful for files other than f_fs.c,
so move them to a header file.

Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
Acked-by: Michal Nazarewicz <mina86@mina86.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/f_fs.c
drivers/usb/gadget/u_f.h