From: Marek Szyprowski Date: Fri, 23 Apr 2021 20:44:57 +0000 (+0200) Subject: media: s5p-mfc: Fix display delay control creation X-Git-Tag: v5.15~623^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=61c6f04a988e420a1fc5e8e81cf9aebf142a7bd6;p=platform%2Fkernel%2Flinux-starfive.git media: s5p-mfc: Fix display delay control creation v4l2_ctrl_new_std() fails if the caller provides no 'step' parameter for integer control, so define it to fix following error: s5p_mfc_dec_ctrls_setup:1166: Adding control (1) failed Fixes: c3042bff918a ("media: s5p-mfc: Use display delay and display enable std controls") Signed-off-by: Marek Szyprowski Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc_dec.c b/drivers/media/platform/s5p-mfc/s5p_mfc_dec.c index a92a9ca..c1d3bda 100644 --- a/drivers/media/platform/s5p-mfc/s5p_mfc_dec.c +++ b/drivers/media/platform/s5p-mfc/s5p_mfc_dec.c @@ -172,6 +172,7 @@ static struct mfc_control controls[] = { .type = V4L2_CTRL_TYPE_INTEGER, .minimum = 0, .maximum = 16383, + .step = 1, .default_value = 0, }, {