usb: gadget: function: f_fs: pass companion descriptor along
authorFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 31 Jan 2017 12:54:45 +0000 (14:54 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 18 Mar 2017 11:14:31 +0000 (19:14 +0800)
commit5ce2e4ce4a8a02d1ca9ed0d4aeac7a24cd3a59b9
tree71f5c6c5d5283c03bd3cc72294ab946da58b2e07
parent40192c96660f46b9aaaf2b8196856d230f859aca
usb: gadget: function: f_fs: pass companion descriptor along

commit 2bfa0719ac2a9b2f3c91345873d3cdebd0296ba9 upstream.

If we're dealing with SuperSpeed endpoints, we need
to make sure to pass along the companion descriptor
and initialize fields needed by the Gadget
API. Eventually, f_fs.c should be converted to use
config_ep_by_speed() like all other functions,
though.

Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/function/f_fs.c