On Fri Nov 14 12:02:12 2025 +0100, Jacopo Mondi wrote:
> 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 <[email protected]>
> Reviewed-by: Laurent Pinchart <[email protected]>
> Reviewed-by: Sakari Ailus <[email protected]>
> Signed-off-by: Hans Verkuil <[email protected]>
Patch committed.
Thanks,
Hans Verkuil
drivers/media/platform/arm/mali-c55/mali-c55-params.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/drivers/media/platform/arm/mali-c55/mali-c55-params.c
b/drivers/media/platform/arm/mali-c55/mali-c55-params.c
index c643cd013e46..082cda4f4f63 100644
--- a/drivers/media/platform/arm/mali-c55/mali-c55-params.c
+++ b/drivers/media/platform/arm/mali-c55/mali-c55-params.c
@@ -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)
{
_______________________________________________
linuxtv-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]