media: DaVinci-VPBE: constify vpbe_dev_ops
authorJulia Lawall <Julia.Lawall@lip6.fr>
Wed, 2 Aug 2017 14:54:13 +0000 (10:54 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 9 Aug 2017 14:33:51 +0000 (10:33 -0400)
vpbe_dev_ops is only copied into the ops field at the end of a vpbe_device
structure, so it can be const.

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@s-opensource.com>
drivers/media/platform/davinci/vpbe.c

index 3679b1e..7f64625 100644 (file)
@@ -790,7 +790,7 @@ static void vpbe_deinitialize(struct device *dev, struct vpbe_device *vpbe_dev)
        vpss_enable_clock(VPSS_VPBE_CLOCK, 0);
 }
 
-static struct vpbe_device_ops vpbe_dev_ops = {
+static const struct vpbe_device_ops vpbe_dev_ops = {
        .g_cropcap = vpbe_g_cropcap,
        .enum_outputs = vpbe_enum_outputs,
        .set_output = vpbe_set_output,