usb: gadget: uvc: Use custom strings if available
authorDaniel Scally <dan.scally@ideasonboard.com>
Mon, 6 Feb 2023 16:18:02 +0000 (16:18 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 7 Feb 2023 07:46:37 +0000 (08:46 +0100)
commitcf13d6e4a9aa6639c173fd630d82d586a2322ff9
treeedb3b124b2f58d96833a05d918202add49469fcb
parentfe625755370be6e3945c53bd0ffb4f4db0c4a73c
usb: gadget: uvc: Use custom strings if available

If the user has defined a custom string descriptor for the IAD or the
VideoStreaming interfaces then set their index field to point to the
custom descriptor instead of the hardcoded defaults. If no custom
descriptors have been linked to, then use the default ones.

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