Re: [PATCH] usb: gadget: hid: Fix static variable usage

2015-03-27 Thread Krzysztof Opasiak
On Thu, Mar 26, 2015 at 7:51 PM, Sergei Shtylyov wrote: > Hello. > > On 03/26/2015 06:03 PM, Krzysztof Opasiak wrote: > >> 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 stati

Re: [PATCH] usb: gadget: hid: Fix static variable usage

2015-03-26 Thread Sergei Shtylyov
Hello. On 03/26/2015 06:03 PM, Krzysztof Opasiak wrote: 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