]> git.baikalelectronics.ru Git - kernel.git/commit
media: s5p-jpeg: Constify struct v4l2_m2m_ops
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Tue, 30 Nov 2021 21:27:00 +0000 (22:27 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 7 Dec 2021 10:29:56 +0000 (11:29 +0100)
commit1e3f91205cbbb79c2fc1bbc07be5af00227e1fe7
treeec98f6f407a5d1f1df1328d2f0dc153631614fe8
parentc7100b254bcbfc7ad3db8eede4662255990b1d9f
media: s5p-jpeg: Constify struct v4l2_m2m_ops

The only usage of the v4l2_m2m_ops structs is to pass their address to
v4l2_m2m_init() which takes a pointer to const struct v4l2_m2m_ops as
argument. Make them const to allow the compiler to put them in read-only
memory.

Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/s5p-jpeg/jpeg-core.c
drivers/media/platform/s5p-jpeg/jpeg-core.h