mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 00:53:34 +02:00
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:
parent
d619dd9a3d
commit
1435db44ec
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user