diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2018-10-27 14:16:39 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2018-11-23 12:03:33 +0100 |
commit | 299553d88e2d48bbc91dfaba4a1d7bf5a93ef528 (patch) | |
tree | 218353632926968d503f9e43ee7f011c1c2a2e95 /drivers/media/platform | |
parent | media: v4l uapi docs: few minor corrections and typos (diff) | |
download | linux-299553d88e2d48bbc91dfaba4a1d7bf5a93ef528.tar.xz linux-299553d88e2d48bbc91dfaba4a1d7bf5a93ef528.zip |
media: vicodec: constify v4l2_ctrl_ops structure
The v4l2_ctrl_ops structure is only stored in the ops field of a
v4l2_ctrl_config structure, and this field is const, or passed as the
second argument of v4l2_ctrl_new_std, and the corresponding parameter
is declared as const. Accordingly, the structure can also be const.
Done with the help of Coccinelle.
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/media/platform')
-rw-r--r-- | drivers/media/platform/vicodec/vicodec-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/vicodec/vicodec-core.c b/drivers/media/platform/vicodec/vicodec-core.c index 16e4db7c1e0a..b7bdfe97215b 100644 --- a/drivers/media/platform/vicodec/vicodec-core.c +++ b/drivers/media/platform/vicodec/vicodec-core.c @@ -1125,7 +1125,7 @@ static int vicodec_s_ctrl(struct v4l2_ctrl *ctrl) return -EINVAL; } -static struct v4l2_ctrl_ops vicodec_ctrl_ops = { +static const struct v4l2_ctrl_ops vicodec_ctrl_ops = { .s_ctrl = vicodec_s_ctrl, }; |