]> www.infradead.org Git - users/jedix/linux-maple.git/commit
media: uvcvideo: Support any size for mapping get/set
authorRicardo Ribalda <ribalda@chromium.org>
Mon, 3 Feb 2025 11:55:44 +0000 (11:55 +0000)
committerHans Verkuil <hverkuil@xs4all.nl>
Mon, 3 Mar 2025 17:23:35 +0000 (18:23 +0100)
commit4e15c535659b7c6c2b10239e276a598b3a30616b
tree0f0a4d27861f125fef340d886424c82e0e328ee2
parent66dcae2c3b29f76f3acdb93105f2bfdb110936b3
media: uvcvideo: Support any size for mapping get/set

Right now, we only support mappings for v4l2 controls with a max size of
s32. This patch modifies the prototype of get/set so it can support any
size.

This is done to prepare for compound controls.

Suggested-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Yunke Cao <yunkec@google.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Tested-by: Yunke Cao <yunkec@google.com>
Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Link: https://lore.kernel.org/r/20250203-uvc-roi-v17-8-5900a9fed613@chromium.org
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
drivers/media/usb/uvc/uvc_ctrl.c
drivers/media/usb/uvc/uvcvideo.h