mirror of https://gitee.com/openkylin/linux.git
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:
parent
29951078bb
commit
a03003c528
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue