[media] v4l: mt9t001: constify v4l2_subdev_internal_ops structure
authorJulia Lawall <Julia.Lawall@lip6.fr>
Sun, 11 Oct 2015 11:57:13 +0000 (08:57 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 28 Jun 2016 10:55:02 +0000 (07:55 -0300)
This v4l2_subdev_internal_ops structure is never modified.  All other
v4l2_subdev_internal_ops structures are declared as const.

Done with the help of Coccinelle.

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/i2c/mt9t001.c

index 702d562f8e39a2a4ae26511eecbc3f42ada8e5fd..16b8c702cf130479945f57188198ac226a65a37d 100644 (file)
@@ -834,7 +834,7 @@ static struct v4l2_subdev_ops mt9t001_subdev_ops = {
        .pad = &mt9t001_subdev_pad_ops,
 };
 
-static struct v4l2_subdev_internal_ops mt9t001_subdev_internal_ops = {
+static const struct v4l2_subdev_internal_ops mt9t001_subdev_internal_ops = {
        .registered = mt9t001_registered,
        .open = mt9t001_open,
        .close = mt9t001_close,