From: Michal Nazarewicz Date: Wed, 10 Sep 2014 15:50:24 +0000 (+0200) Subject: usb: gadget: f_fs: refactor and document __ffs_ep0_read_events better X-Git-Tag: fixes-v4.0-rc1~102^2^2~146 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=67913bbd0b62d297520667cd3057aff5a5890ca6;p=pandora-kernel.git 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 Reported-by: Rohith Seelaboyina Signed-off-by: Michal Nazarewicz Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed