aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2022-10-25 21:42:21 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2023-01-15 23:45:11 +0200
commit5f0e659d2a2ac6172d495915f2775fa592c7ab17 (patch)
treeb15ef987d0d8b0473e87fdf3505044f1f3b7e3fe /tools/perf/scripts/python
parentmedia: uvcvideo: Limit power line control for Acer EasyCamera (diff)
downloadlinux-5f0e659d2a2ac6172d495915f2775fa592c7ab17.tar.gz
linux-5f0e659d2a2ac6172d495915f2775fa592c7ab17.zip
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: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions