Skip to content
Commit 5f0e659d authored by Laurent Pinchart's avatar Laurent Pinchart
Browse files

media: uvcvideo: Factor out usb_string() calls



When parsing UVC descriptors to instantiate entities, the driver calls
usb_string() to retrieve the entity name from the device, and falls back
to a default name if the string can't be retrieved. This code pattern
occurs multiple times. Factor it out to a separate helper function.

Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent 81e78a6f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment