]> git.ipfire.org Git - thirdparty/linux.git/commit
media: core: export v4l2_translate_cmd
authorRicardo Ribalda <ribalda@chromium.org>
Tue, 1 Jul 2025 06:45:18 +0000 (06:45 +0000)
committerHans Verkuil <hverkuil@xs4all.nl>
Fri, 11 Jul 2025 17:27:28 +0000 (19:27 +0200)
commit1657624a69fcfd3f27ba6223e1c8fb6a16815568
tree95b816d280f48db8db2ca8e8fa7b3373f1a1c515
parenta03e32e60141058d46ea8cf4631654c43c740fdb
media: core: export v4l2_translate_cmd

video_translate_cmd() can be useful for drivers to convert between the
VIDIOC_*32 and VIDIOC_ defines. Let's export it.

Now that the function is exported, use this opportunity to rename the
function with the v4l2_ prefix, that is less ambiguous than video_

The VIDIOC_*32 defines are not accessible by the drivers, they live in
v4l2-compat-ioctl32.c.

Reviewed-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Link: https://lore.kernel.org/r/20250701-uvc-grannular-invert-v4-6-8003b9b89f68@chromium.org
Signed-off-by: Hans de Goede <hansg@kernel.org>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
drivers/media/v4l2-core/v4l2-ioctl.c
include/media/v4l2-ioctl.h