Skip to content

Commit a03003c

Browse files
JuliaLawallmchehab
authored andcommitted
media: mt9v111: constify copied structure
The mt9v111_def_fmt structure is only copied into another structure, so make it const. The opportunity for this change was found using Coccinelle. Signed-off-by: Julia Lawall <[email protected]> Acked-by: Jacopo Mondi <[email protected]> Signed-off-by: Sakari Ailus <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
1 parent 2995107 commit a03003c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/media/i2c/mt9v111.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
#define MT9V111_MAX_CLKIN 27000000
104104

105105
/* The default sensor configuration at startup time. */
106-
static struct v4l2_mbus_framefmt mt9v111_def_fmt = {
106+
static const struct v4l2_mbus_framefmt mt9v111_def_fmt = {
107107
.width = 640,
108108
.height = 480,
109109
.code = MEDIA_BUS_FMT_UYVY8_2X8,

0 commit comments

Comments
 (0)