summaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/config.c
diff options
context:
space:
mode:
authorJohn Youn <John.Youn@synopsys.com>2016-02-06 02:06:07 +0100
committerFelipe Balbi <balbi@kernel.org>2016-03-04 14:14:23 +0100
commiteaef50c760576bca70b87fdc26eb87a3660529f8 (patch)
tree918335892063fd997fe3371fe5d0e7c9a9e48fb5 /drivers/usb/gadget/config.c
parentusb: gadget: composite: Return SSP Dev Cap descriptor (diff)
downloadlinux-eaef50c760576bca70b87fdc26eb87a3660529f8.tar.xz
linux-eaef50c760576bca70b87fdc26eb87a3660529f8.zip
usb: gadget: Update usb_assign_descriptors for SuperSpeedPlus
Add the 'ssp_descriptors' parameter to the usb_assign_descriptors() function. This allows a function driver to add descriptors for SuperSpeedPlus speeds if it supports it. Also update all uses of this function in the gadget subsystem so that they pass NULL for the ssp_descriptors parameters. Signed-off-by: John Youn <johnyoun@synopsys.com> Signed-off-by: Felipe Balbi <balbi@kernel.org>
Diffstat (limited to 'drivers/usb/gadget/config.c')
-rw-r--r--drivers/usb/gadget/config.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/gadget/config.c b/drivers/usb/gadget/config.c
index 0fafa7a1b6f6..62ba4c1b69ec 100644
--- a/drivers/usb/gadget/config.c
+++ b/drivers/usb/gadget/config.c
@@ -163,7 +163,8 @@ EXPORT_SYMBOL_GPL(usb_copy_descriptors);
int usb_assign_descriptors(struct usb_function *f,
struct usb_descriptor_header **fs,
struct usb_descriptor_header **hs,
- struct usb_descriptor_header **ss)
+ struct usb_descriptor_header **ss,
+ struct usb_descriptor_header **ssp)
{
struct usb_gadget *g = f->config->cdev->gadget;