]> git.baikalelectronics.ru Git - kernel.git/commit
media: v4l2-ctrls: alloc arrays in ctrl_ref
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Mon, 11 Jul 2022 10:21:08 +0000 (12:21 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 19 Aug 2022 11:47:00 +0000 (13:47 +0200)
commitf8dad88712a11ee9ae83612b3a672c7c018077e7
tree983a759864b7d861687870a9400d59c9428d4e73
parentaaa5a4f8ab0a35ce8073f40ff0515e9373d41e4f
media: v4l2-ctrls: alloc arrays in ctrl_ref

Also allocate space for arrays in struct ctrl_ref.

This is in preparation for allowing to change the array size from
a driver.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/v4l2-core/v4l2-ctrls-api.c
drivers/media/v4l2-core/v4l2-ctrls-core.c
include/media/v4l2-ctrls.h