media: v4l2-ctrls: drop 'elems' argument from control type ops.
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Mon, 29 Aug 2022 14:05:14 +0000 (16:05 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Sat, 24 Sep 2022 06:49:06 +0000 (08:49 +0200)
commitcd75981ec93a3abf717d0182ff5d56b650873215
treeb51db81eec3dd50b234a6e587eaccd1c98bc2204
parentd91d7bc85062309aae6d8064563ddf17947cb6bc
media: v4l2-ctrls: drop 'elems' argument from control type ops.

The type ops for equal, init and validate have an elems argument,
but this can be taken from struct v4l2_ctrl: ctrl->elems for
equal and init, and ctrl->new_elems for validate (since you are
validating a new control value).

So drop this argument and update all callers.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/platform/nxp/dw100/dw100.c
drivers/media/v4l2-core/v4l2-ctrls-api.c
drivers/media/v4l2-core/v4l2-ctrls-core.c
include/media/v4l2-ctrls.h