mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 01:10:04 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue