projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c08eadc
)
media: saa7115: make static read-only array lcr2vbi const
author
Colin Ian King
<colin.i.king@gmail.com>
Sun, 23 Jan 2022 23:07:26 +0000
(23:07 +0000)
committer
Hans Verkuil
<hverkuil-cisco@xs4all.nl>
Tue, 22 Feb 2022 08:41:11 +0000
(09:41 +0100)
The static array lcr2vbi is read-only so it make sense to make
it const.
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/i2c/saa7115.c
patch
|
blob
|
history
diff --git
a/drivers/media/i2c/saa7115.c
b/drivers/media/i2c/saa7115.c
index
a958bbc
..
15ff80e
100644
(file)
--- a/
drivers/media/i2c/saa7115.c
+++ b/
drivers/media/i2c/saa7115.c
@@
-1129,7
+1129,7
@@
static void saa711x_set_lcr(struct v4l2_subdev *sd, struct v4l2_sliced_vbi_forma
static int saa711x_g_sliced_fmt(struct v4l2_subdev *sd, struct v4l2_sliced_vbi_format *sliced)
{
- static u16 lcr2vbi[] = {
+ static
const
u16 lcr2vbi[] = {
0, V4L2_SLICED_TELETEXT_B, 0, /* 1 */
0, V4L2_SLICED_CAPTION_525, /* 4 */
V4L2_SLICED_WSS_625, 0, /* 5 */