summaryrefslogtreecommitdiffstats
path: root/drivers/media/common
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-09-13 16:37:50 -0300
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2017-10-04 16:57:33 -0300
commitad62701720dd5d2a17c62f6c3bbd6ee629efcfaa (patch)
treedcf0ff1745ceee28257b121ece972aceb764f070 /drivers/media/common
parent022565200a4f27ffcf9315b2194ca9454059d6b1 (diff)
downloadlinux-stable-ad62701720dd5d2a17c62f6c3bbd6ee629efcfaa.tar.gz
linux-stable-ad62701720dd5d2a17c62f6c3bbd6ee629efcfaa.tar.bz2
linux-stable-ad62701720dd5d2a17c62f6c3bbd6ee629efcfaa.zip
[media] saa7146: make saa7146_use_ops const
Make these const as they are not modified in the file referencing them. They are only used when their function pointer fields invokes a function and therefore none of the structure fields are getting modified. Also, add a const to the declaration in the header. Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/common')
-rw-r--r--drivers/media/common/saa7146/saa7146_vbi.c2
-rw-r--r--drivers/media/common/saa7146/saa7146_video.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/common/saa7146/saa7146_vbi.c b/drivers/media/common/saa7146/saa7146_vbi.c
index d79e4d7ecd9f..69525ca4f52c 100644
--- a/drivers/media/common/saa7146/saa7146_vbi.c
+++ b/drivers/media/common/saa7146/saa7146_vbi.c
@@ -488,7 +488,7 @@ static ssize_t vbi_read(struct file *file, char __user *data, size_t count, loff
return ret;
}
-struct saa7146_use_ops saa7146_vbi_uops = {
+const struct saa7146_use_ops saa7146_vbi_uops = {
.init = vbi_init,
.open = vbi_open,
.release = vbi_close,
diff --git a/drivers/media/common/saa7146/saa7146_video.c b/drivers/media/common/saa7146/saa7146_video.c
index 37b4654dc21c..51eeed830de4 100644
--- a/drivers/media/common/saa7146/saa7146_video.c
+++ b/drivers/media/common/saa7146/saa7146_video.c
@@ -1303,7 +1303,7 @@ out:
return ret;
}
-struct saa7146_use_ops saa7146_video_uops = {
+const struct saa7146_use_ops saa7146_video_uops = {
.init = video_init,
.open = video_open,
.release = video_close,