projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
856b0b8
)
media: i2c: ov9640: make array of supported formats constant
author
Petr Cvek
<petrcvekcz@gmail.com>
Thu, 13 Dec 2018 15:39:18 +0000
(10:39 -0500)
committer
Mauro Carvalho Chehab
<mchehab+samsung@kernel.org>
Wed, 16 Jan 2019 18:31:48 +0000
(13:31 -0500)
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>
drivers/media/i2c/ov9640.c
patch
|
blob
|
history
diff --git
a/drivers/media/i2c/ov9640.c
b/drivers/media/i2c/ov9640.c
index 2839aa3b4fb4711082d80fba5e4852eb9f223be3..9739fa8d433a80a77b71bd0a615013218b66d7dd 100644
(file)
--- 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,