usb: gadget: uvc: Allow linking function to string descs
authorDaniel Scally <dan.scally@ideasonboard.com>
Mon, 6 Feb 2023 16:18:01 +0000 (16:18 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 7 Feb 2023 07:46:37 +0000 (08:46 +0100)
commitfe625755370be6e3945c53bd0ffb4f4db0c4a73c
treec36a1acdd7311878059b4864f0741e7fb359e4ab
parent9963f7440f4044bd4262d99fdd0a5827131bd934
usb: gadget: uvc: Allow linking function to string descs

Currently the string descriptors for the IAD and VideoStreaming
Interfaces are hardcoded into f_uvc. Now that we can create arbitrary
string descriptors, add a mechanism to define string descriptors for
the IAD, VC and VS interfaces by linking to the appropriate directory
at function level.

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