usb: gadget: uvc: Pick up custom string descriptor IDs
authorDaniel Scally <dan.scally@ideasonboard.com>
Mon, 6 Feb 2023 16:18:00 +0000 (16:18 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 7 Feb 2023 07:46:37 +0000 (08:46 +0100)
commit9963f7440f4044bd4262d99fdd0a5827131bd934
tree73407c3379fdbe82ad6b96f8f754bc6864dca39e
parent08ddd71bf020c3b713d343959df39bf8a48ddd0b
usb: gadget: uvc: Pick up custom string descriptor IDs

If any custom string descriptors have been linked to from the
extension unit, pick up the string ID that was returned when
the strings were attached to the composite dev and use it to
set the iExtension field of the Extension Unit Descriptor.

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