From: Robert Baldyga Date: Mon, 25 Aug 2014 09:16:27 +0000 (+0200) Subject: usb: gadget: f_fs: fix the redundant ep files problem X-Git-Tag: fixes-for-v3.18-merge-window~137^2~23^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d5c1c77bbf98b2cc5373af02bb7b3b27584ee4a;p=pandora-kernel.git usb: gadget: f_fs: fix the redundant ep files problem Up to now, when endpoint addresses in descriptors were non-consecutive, there were created redundant files, which could cause problems in kernel, when user tried to read/write to them. It was result of fact that maximum endpoint address was taken as total number of endpoints in function. This patch adds endpoint descriptors counting and storing their addresses in eps_addrmap to verify their cohesion in each speed. Endpoint address map would be also useful for further features, just like vitual endpoint address mapping. Signed-off-by: Robert Baldyga Acked-by: Michal Nazarewicz Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed