]> git.ipfire.org Git - thirdparty/linux.git/commit
media: v4l2-core: Introduce v4l2-isp.c
authorJacopo Mondi <jacopo.mondi@ideasonboard.com>
Tue, 1 Jul 2025 16:57:17 +0000 (18:57 +0200)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Fri, 14 Nov 2025 14:48:48 +0000 (15:48 +0100)
commit3cb6de6fafb8fca55b14313e63f13ce10ecc6fc4
tree53787fff1d93c87209dbd254af2d6c64b9bbc542
parent8923679cd47e1b743a75a98ca78f608bec92c5e5
media: v4l2-core: Introduce v4l2-isp.c

Add to the V4L2 framework helper functions to support drivers when
validating a buffer of V4L2 ISP parameters.

Driver shall use v4l2_isp_params_validate_buffer_size() to verify the
size correctness of the data received from userspace, and after having
copied the data to a kernel-only memory location, complete the
validation by calling v4l2_isp_params_validate_buffer().

Reviewed-by: Daniel Scally <dan.scally@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Reviewed-by: Michael Riesch <michael.riesch@collabora.com>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Tested-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
MAINTAINERS
drivers/media/v4l2-core/Kconfig
drivers/media/v4l2-core/Makefile
drivers/media/v4l2-core/v4l2-isp.c [new file with mode: 0644]
include/media/v4l2-isp.h [new file with mode: 0644]