summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorHans de Goede <hansg@kernel.org>2025-07-08 12:46:22 +0200
committerHans Verkuil <hverkuil@xs4all.nl>2025-07-11 19:27:31 +0200
commitc56c437b140ed9c9e91d82f4ca705cdb021a9343 (patch)
treed655267d15aca0ba23991ed10193f12d3e4d0a3f /tools/perf/scripts/python
parent6cb786f040ad35b23b4a7bff8b9d772f22909d48 (diff)
media: uvcvideo: Use a count variable for meta_formats instead of 0 terminating
The code dealing with the 0 terminated meta_formats array is a bit klunky especially for the uvc_meta_v4l2_enum_formats() case. Instead of 0 terminating add an unsigned int nmeta_formats member to struct uvc_device and use that. This leads to slightly cleaner code. Signed-off-by: Hans de Goede <hansg@kernel.org> Reviewed-by: Ricardo Ribalda <ribalda@chrium.org> Tested-by: Ricardo Ribalda <ribalda@chromium.org> # Camera with MSXU_CONTROL_METADATA Link: https://lore.kernel.org/r/20250708104622.73237-2-hansg@kernel.org Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions