From: Boris Brezillon Date: Thu, 25 Jul 2019 14:17:52 +0000 (-0400) Subject: media: hantro: Constify the control array X-Git-Tag: for-linus-2019-09-27~105^2~202 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=61e95d81aa28f411ff1238f56702dc2add2fac00;p=linux-2.6-block.git media: hantro: Constify the control array controls[] is not supposed to be modified at runtime, let's make it explicit by adding a const specifier. Signed-off-by: Boris Brezillon Signed-off-by: Ezequiel Garcia Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/staging/media/hantro/hantro_drv.c b/drivers/staging/media/hantro/hantro_drv.c index ff2dcbf43e81..398618b0d586 100644 --- a/drivers/staging/media/hantro/hantro_drv.c +++ b/drivers/staging/media/hantro/hantro_drv.c @@ -262,7 +262,7 @@ static const struct v4l2_ctrl_ops hantro_ctrl_ops = { .s_ctrl = hantro_s_ctrl, }; -static struct hantro_ctrl controls[] = { +static const struct hantro_ctrl controls[] = { { .codec = HANTRO_JPEG_ENCODER, .cfg = {