usb: gadget: uvc: allow changing interface name via configfs
authorDan Vacura <w36195@motorola.com>
Fri, 1 Apr 2022 16:04:45 +0000 (11:04 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 21 Apr 2022 16:14:34 +0000 (18:14 +0200)
commit324e4f85070f89b58c5f9926370ad19dea907dc7
tree7b4960a98ae5bb14a23602c3485f646c3a44b621
parent3123109284176b1532874591f7c81f3837bbdc17
usb: gadget: uvc: allow changing interface name via configfs

Add a configfs entry, "function_name", to change the iInterface field
for VideoControl. This name is used on host devices for user selection,
useful when multiple cameras are present. The default will remain "UVC
Camera".

Signed-off-by: Dan Vacura <w36195@motorola.com>
Link: https://lore.kernel.org/r/20220401160447.5919-1-w36195@motorola.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/ABI/testing/configfs-usb-gadget-uvc
Documentation/usb/gadget-testing.rst
drivers/usb/gadget/function/f_uvc.c
drivers/usb/gadget/function/u_uvc.h
drivers/usb/gadget/function/uvc_configfs.c