usb: gadget: uvc: Allow linking XUs to string descriptors
authorDaniel Scally <dan.scally@ideasonboard.com>
Mon, 6 Feb 2023 16:17:59 +0000 (16:17 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 7 Feb 2023 07:46:37 +0000 (08:46 +0100)
commit08ddd71bf020c3b713d343959df39bf8a48ddd0b
treedb12cb5513328b485deed0477c2740fbdb01e679
parentc033563220e0f7a82f4ae8d698284cced94fd6cf
usb: gadget: uvc: Allow linking XUs to string descriptors

Add .allow_link() and .drop_link() callbacks to allow users to link
an extension unit descriptor to a string descriptor.

Signed-off-by: Daniel Scally <dan.scally@ideasonboard.com>
Link: https://lore.kernel.org/r/20230206161802.892954-9-dan.scally@ideasonboard.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/function/uvc_configfs.c
drivers/usb/gadget/function/uvc_configfs.h