media: rockchip/rga: constify v4l2_m2m_ops structure
authorJulia Lawall <Julia.Lawall@lip6.fr>
Sat, 27 Oct 2018 12:30:32 +0000 (08:30 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 23 Nov 2018 11:03:51 +0000 (06:03 -0500)
The v4l2_m2m_ops structure can be const as it is only passed to
v4l2_m2m_init whose parameter is 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>
drivers/media/platform/rockchip/rga/rga.c

index 9cc9db0838702f535cffc91269430e35002862b8..dc63c44929de3dca5dbabaf94300813a8db7b1a9 100644 (file)
@@ -97,7 +97,7 @@ static irqreturn_t rga_isr(int irq, void *prv)
        return IRQ_HANDLED;
 }
 
-static struct v4l2_m2m_ops rga_m2m_ops = {
+static const struct v4l2_m2m_ops rga_m2m_ops = {
        .device_run = device_run,
 };