Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

media: exynos4-is: constify video_subdev structures

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>

authored by

Julia Lawall and committed by
Mauro Carvalho Chehab
a3b215ea ebf7a648

+2 -2
+1 -1
drivers/media/platform/exynos4-is/fimc-isp.c
··· 433 433 .s_power = fimc_isp_subdev_s_power, 434 434 }; 435 435 436 - static struct v4l2_subdev_ops fimc_is_subdev_ops = { 436 + static const struct v4l2_subdev_ops fimc_is_subdev_ops = { 437 437 .core = &fimc_is_core_ops, 438 438 .video = &fimc_is_subdev_video_ops, 439 439 .pad = &fimc_is_subdev_pad_ops,
+1 -1
drivers/media/platform/exynos4-is/fimc-lite.c
··· 1361 1361 .log_status = fimc_lite_log_status, 1362 1362 }; 1363 1363 1364 - static struct v4l2_subdev_ops fimc_lite_subdev_ops = { 1364 + static const struct v4l2_subdev_ops fimc_lite_subdev_ops = { 1365 1365 .core = &fimc_lite_core_ops, 1366 1366 .video = &fimc_lite_subdev_video_ops, 1367 1367 .pad = &fimc_lite_subdev_pad_ops,