media: exynos4-is: constify video_subdev structures
authorJulia Lawall <Julia.Lawall@lip6.fr>
Tue, 8 Aug 2017 10:58:31 +0000 (06:58 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Sun, 20 Aug 2017 12:04:35 +0000 (08:04 -0400)
The v4l2_subdev_ops structures are only passed as the second
argument of v4l2_subdev_init, which is const, so the
v4l2_subdev_ops structures can be const as well.

Done with the help of Coccinelle.

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Reviewed-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/exynos4-is/fimc-isp.c
drivers/media/platform/exynos4-is/fimc-lite.c

index 8efe9160ab3460343838f0095f5c0a2012dfd86e..fd793d3ac0725390b841dcb607009625960b5ac0 100644 (file)
@@ -433,7 +433,7 @@ static const struct v4l2_subdev_core_ops fimc_is_core_ops = {
        .s_power = fimc_isp_subdev_s_power,
 };
 
-static struct v4l2_subdev_ops fimc_is_subdev_ops = {
+static const struct v4l2_subdev_ops fimc_is_subdev_ops = {
        .core = &fimc_is_core_ops,
        .video = &fimc_is_subdev_video_ops,
        .pad = &fimc_is_subdev_pad_ops,
index 7d3ec5cc6608f3b9f2e94b0a06d2459bc5adbc14..30282c512e23a116528e164717594359158b8a45 100644 (file)
@@ -1361,7 +1361,7 @@ static const struct v4l2_subdev_core_ops fimc_lite_core_ops = {
        .log_status = fimc_lite_log_status,
 };
 
-static struct v4l2_subdev_ops fimc_lite_subdev_ops = {
+static const struct v4l2_subdev_ops fimc_lite_subdev_ops = {
        .core = &fimc_lite_core_ops,
        .video = &fimc_lite_subdev_video_ops,
        .pad = &fimc_lite_subdev_pad_ops,