]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
media: vs6624: constify vs6624_default_fmt
authorJulia Lawall <Julia.Lawall@lip6.fr>
Mon, 7 Aug 2017 19:02:32 +0000 (15:02 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 9 Aug 2017 15:19:20 +0000 (11:19 -0400)
The structure vs6624_default_fmt is only copied into another
structure field, so it can be const.

Done with the help of Coccinelle.

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/i2c/vs6624.c

index f0741ab338df2441180e4066cafe775a8e2c55c2..560738213c00be42ed34c2dbe140741f73ac880f 100644 (file)
@@ -58,7 +58,7 @@ static const struct vs6624_format {
        },
 };
 
-static struct v4l2_mbus_framefmt vs6624_default_fmt = {
+static const struct v4l2_mbus_framefmt vs6624_default_fmt = {
        .width = VGA_WIDTH,
        .height = VGA_HEIGHT,
        .code = MEDIA_BUS_FMT_UYVY8_2X8,