diff options
author | Ricardo Ribalda Delgado <ribalda@kernel.org> | 2019-11-04 14:09:18 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@kernel.org> | 2019-11-08 07:40:18 +0100 |
commit | 3b98a21a3202aeb9a47c0b57cab3d3ed420c1e05 (patch) | |
tree | fdf812a4d2bcb9eb27749da529892ea5a05da574 /drivers/media | |
parent | 4d741cbd58bf889c8a68cf6e592a7892b5c2802e (diff) | |
download | linux-3b98a21a3202aeb9a47c0b57cab3d3ed420c1e05.tar.gz linux-3b98a21a3202aeb9a47c0b57cab3d3ed420c1e05.tar.bz2 linux-3b98a21a3202aeb9a47c0b57cab3d3ed420c1e05.zip |
media: v4l2_ctrl: Add p_def to v4l2_ctrl_config
This allows setting the default value on compound controls created via
v4l2_ctrl_new_custom.
Signed-off-by: Ricardo Ribalda Delgado <ribalda@kernel.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/v4l2-core/v4l2-ctrls.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/v4l2-core/v4l2-ctrls.c b/drivers/media/v4l2-core/v4l2-ctrls.c index b4caf2d4d076..73d99c3561ce 100644 --- a/drivers/media/v4l2-core/v4l2-ctrls.c +++ b/drivers/media/v4l2-core/v4l2-ctrls.c @@ -2690,7 +2690,7 @@ struct v4l2_ctrl *v4l2_ctrl_new_custom(struct v4l2_ctrl_handler *hdl, type, min, max, is_menu ? cfg->menu_skip_mask : step, def, cfg->dims, cfg->elem_size, - flags, qmenu, qmenu_int, ptr_null, priv); + flags, qmenu, qmenu_int, cfg->p_def, priv); if (ctrl) ctrl->is_private = cfg->is_private; return ctrl; |