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 <Julia.Lawall@inria.fr>
Acked-by: Jacopo Mondi <jacopo+renesas@jmondi.org>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
This commit is contained in:
Julia Lawall 2020-01-01 08:43:24 +01:00 committed by Mauro Carvalho Chehab
parent 29951078bb
commit a03003c528
1 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,7 @@
#define MT9V111_MAX_CLKIN 27000000 #define MT9V111_MAX_CLKIN 27000000
/* The default sensor configuration at startup time. */ /* 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, .width = 640,
.height = 480, .height = 480,
.code = MEDIA_BUS_FMT_UYVY8_2X8, .code = MEDIA_BUS_FMT_UYVY8_2X8,