diff options
author | Petr Cvek <petrcvekcz@gmail.com> | 2018-12-13 10:39:18 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2019-01-16 13:31:48 -0500 |
commit | 95531e462288a9afdcb494abf6d1d123f5a4ff1c (patch) | |
tree | 840e5eb63928f6b9ad0f057fe258a45a1d411216 /drivers/media/i2c/ov9640.c | |
parent | 856b0b8ffbf69d7b146a62669904576538d74aac (diff) | |
download | linux-stable-95531e462288a9afdcb494abf6d1d123f5a4ff1c.tar.gz linux-stable-95531e462288a9afdcb494abf6d1d123f5a4ff1c.tar.bz2 linux-stable-95531e462288a9afdcb494abf6d1d123f5a4ff1c.zip |
media: i2c: ov9640: make array of supported formats constant
An array which defines sensor's supported formats is not written anywhere,
so it can be constant.
Signed-off-by: Petr Cvek <petrcvekcz@gmail.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/media/i2c/ov9640.c')
-rw-r--r-- | drivers/media/i2c/ov9640.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/i2c/ov9640.c b/drivers/media/i2c/ov9640.c index 2839aa3b4fb4..9739fa8d433a 100644 --- a/drivers/media/i2c/ov9640.c +++ b/drivers/media/i2c/ov9640.c @@ -161,7 +161,7 @@ static const struct ov9640_reg ov9640_regs_rgb[] = { { OV9640_MTXS, 0x65 }, }; -static u32 ov9640_codes[] = { +static const u32 ov9640_codes[] = { MEDIA_BUS_FMT_UYVY8_2X8, MEDIA_BUS_FMT_RGB555_2X8_PADHI_LE, MEDIA_BUS_FMT_RGB565_2X8_LE, |