mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-01-24 21:53:21 -05:00
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 <boris.brezillon@collabora.com> Signed-off-by: Ezequiel Garcia <ezequiel@collabora.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
This commit is contained in:
committed by
Mauro Carvalho Chehab
parent
9530bbe726
commit
61e95d81aa
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user