Commit a74865e7 authored by Julia Lawall's avatar Julia Lawall Committed by Mauro Carvalho Chehab

media: rockchip/rga: constify v4l2_m2m_ops structure

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: default avatarJulia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
parent 299553d8
......@@ -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,
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment