media: staging: media: rkvdec: Constify static struct v4l2_m2m_ops
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Tue, 12 Oct 2021 22:11:44 +0000 (00:11 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 30 Nov 2021 11:00:26 +0000 (12:00 +0100)
commit30162960165fe608f505d2564a9abc8514ffb7df
treed3716bfe11af0be0c3221b1f147625bbba21348d
parent61b20ddec90075b0fd33394e0425fd01e627a0a9
media: staging: media: rkvdec: Constify static struct v4l2_m2m_ops

The only usage of rkvdec_m2m_ops is to pass its address to v4l2_m2m_init(),
which takes a pointer to const v4l2_m2m_ops as argument. Make it const
to allow the compiler to put it in read-only memory.

Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Reviewed-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/rkvdec/rkvdec.c