OSDN Git Service

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)
commitcf56f4f2a4ec7370b28e05cb4d228ffa7b65abbd
treeec98f6f407a5d1f1df1328d2f0dc153631614fe8
parent0407c49ebe330333478440157c640fffd986f41b
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