Commit c56c437b authored by Hans de Goede's avatar Hans de Goede Committed by Hans Verkuil
Browse files

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: default avatarHans de Goede <hansg@kernel.org>
Reviewed-by: default avatarRicardo 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: default avatarHans Verkuil <hverkuil@xs4all.nl>
parent 6cb786f0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment