usb: gadget: uvc: Expose configuration name through video node
authorKieran Bingham <kieran.bingham@ideasonboard.com>
Thu, 24 May 2018 16:16:12 +0000 (17:16 +0100)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Thu, 26 Jul 2018 10:43:18 +0000 (13:43 +0300)
commitd7af78b9245545908c90bce2206f200a4250b5db
treef3092d857fcf83faff5ba3a21ce2e1786a6710da
parentc728effd56d35c12774210f0732b8eb8b7ce7cd9
usb: gadget: uvc: Expose configuration name through video node

When utilising multiple instantiations of a UVC gadget on a composite
device, there is no clear method to link a particular configuration to
its respective video node.

Provide a means for identifying the correct video node by exposing the
name of the function configuration through sysfs.

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Documentation/ABI/testing/configfs-usb-gadget-uvc
drivers/usb/gadget/function/f_uvc.c