Skip to content

Commit

Permalink
media: mt9v111: constify copied structure
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
JuliaLawall authored and mchehab committed Jan 23, 2020
1 parent 2995107 commit a03003c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/i2c/mt9v111.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
#define MT9V111_MAX_CLKIN 27000000

/* The default sensor configuration at startup time. */
static struct v4l2_mbus_framefmt mt9v111_def_fmt = {
static const struct v4l2_mbus_framefmt mt9v111_def_fmt = {
.width = 640,
.height = 480,
.code = MEDIA_BUS_FMT_UYVY8_2X8,
Expand Down

0 comments on commit a03003c

Please sign in to comment.