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:09:57 +0000 (19:09 +0800)
commit4a1a3bb70fb4255a9f6052eb86db1ff2140255a6
tree996d4b9cc2fe1a81ff8cd0c5c9b29f27f13df602
parent10af2485650387d928ad00ec7843d66b5b2a705f
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