media: mali-c55: Assert ISP blocks size correctness

For each supported ISP block type the v4l2-isp framework expects
one handler and one block type info.

Static assert that the array of handlers is of the same size of the
array of block types info.

Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
This commit is contained in:
Jacopo Mondi 2025-11-14 12:02:12 +01:00 committed by Hans Verkuil
parent d619dd9a3d
commit 1435db44ec

View File

@ -465,6 +465,9 @@ mali_c55_params_block_types_info[] = {
},
};
static_assert(ARRAY_SIZE(mali_c55_params_handlers) ==
ARRAY_SIZE(mali_c55_params_block_types_info));
static int mali_c55_params_enum_fmt_meta_out(struct file *file, void *fh,
struct v4l2_fmtdesc *f)
{