diff options
| author | Hans de Goede <[email protected]> | 2025-07-08 10:46:22 +0000 |
|---|---|---|
| committer | Hans Verkuil <[email protected]> | 2025-07-11 17:27:31 +0000 |
| commit | c56c437b140ed9c9e91d82f4ca705cdb021a9343 (patch) | |
| tree | d655267d15aca0ba23991ed10193f12d3e4d0a3f /tools/perf/scripts/python/net_dropmonitor.py | |
| parent | media: uvcvideo: Auto-set UVC_QUIRK_MSXU_META (diff) | |
| download | kernel-c56c437b140ed9c9e91d82f4ca705cdb021a9343.tar.gz kernel-c56c437b140ed9c9e91d82f4ca705cdb021a9343.zip | |
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 <[email protected]>
Reviewed-by: Ricardo Ribalda <[email protected]>
Tested-by: Ricardo Ribalda <[email protected]> # Camera with MSXU_CONTROL_METADATA
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Hans Verkuil <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions
