media: mali-c55: Remove duplicated version check

The Mali C55 driver uses the v4l2-isp framework, which performs
validation of the parameters buffer versioning in the
v4l2_isp_params_validate_buffer() function.

It is not necessary to replicate the validation of the parameters buffer
versioning in the platform-specific implementation.

Remove it.

Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Reviewed-by: Daniel Scally <dan.scally@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
This commit is contained in:
Jacopo Mondi 2025-12-15 13:11:06 +01:00 committed by Hans Verkuil
parent 003c492f9e
commit 8c0af684bd

View File

@ -582,13 +582,6 @@ static int mali_c55_params_buf_prepare(struct vb2_buffer *vb)
struct mali_c55 *mali_c55 = params->mali_c55;
int ret;
if (config->version != MALI_C55_PARAM_BUFFER_V1) {
dev_dbg(mali_c55->dev,
"Unsupported extensible format version: %u\n",
config->version);
return -EINVAL;
}
ret = v4l2_isp_params_validate_buffer_size(mali_c55->dev, vb,
v4l2_isp_params_buffer_size(MALI_C55_PARAMS_MAX_SIZE));
if (ret)