linux/drivers/usb/gadget
Michal Nazarewicz 67913bbd0b usb: gadget: f_fs: refactor and document __ffs_ep0_read_events better
Instead of using variable length array, use a static length equal to
the size of the ffs->ev.types array.  This gets rid of a sparse warning:

	drivers/usb/gadget/function/f_fs.c:401:44: warning:
	Variable length array is used.

and makes it more explicit that the array has a very tight upper size
limit.  Also add some more documentation about the ev.types array and
how its size is limited and affects the rest of the code.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Reported-by: Rohith Seelaboyina <rseelaboyina@nvidia.com>
Signed-off-by: Michal Nazarewicz <mina86@mina86.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
2015-01-12 12:13:29 -06:00
..
function usb: gadget: f_fs: refactor and document __ffs_ep0_read_events better 2015-01-12 12:13:29 -06:00
legacy Merge remote-tracking branch 'scsi-queue/drivers-for-3.19' into for-linus 2014-12-18 05:56:29 -08:00
udc usb: gadget: atmel_usba: Cache INT_ENB register value 2015-01-12 12:13:29 -06:00
composite.c usb: gadget: configfs: add suspend/resume 2014-11-03 10:00:59 -06:00
config.c
configfs.c usb: gadget: udc: core: prepend udc_attach_driver with usb_ 2014-11-03 10:01:16 -06:00
configfs.h usb: gadget: OS descriptors: provide interface directory names 2014-06-19 10:06:48 -05:00
epautoconf.c
functions.c
Kconfig usb: gadget: uvc: configfs support in uvc function 2015-01-12 12:13:26 -06:00
Makefile usb: gadget: use $(srctree) instead of $(PWD) for includes 2014-08-29 15:53:46 -05:00
u_f.c
u_f.h
u_os_desc.h usb: gadget: u_os_desc: helper functions for accessing ext prop buffer 2014-07-10 08:36:51 -05:00
usbstring.c