From: Krzysztof Opasiak Date: Fri, 27 Mar 2015 08:35:44 +0000 (+0100) Subject: usb: gadget: hid: Fix static variable usage X-Git-Tag: omap-for-v4.2/soc-pt1-take2~4^2~7^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f286d487e9283a42a8844659bb5552b3f1bf6a7d;p=pandora-kernel.git usb: gadget: hid: Fix static variable usage If we have multiple instances of hid function, each of them may have different report descriptor, also their length may be different. Currently we are using static hidg_desc varable which is being filled in hidg_bind(). Then we send its content to host in hidg_setup() function. This content may have been already overwriten if another instance has executed hidg_bind(). Signed-off-by: Krzysztof Opasiak Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed