summaryrefslogtreecommitdiff
path: root/include/media/drv-intf
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-09-13 22:37:50 +0300
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2017-10-04 22:57:33 +0300
commitad62701720dd5d2a17c62f6c3bbd6ee629efcfaa (patch)
treedcf0ff1745ceee28257b121ece972aceb764f070 /include/media/drv-intf
parent022565200a4f27ffcf9315b2194ca9454059d6b1 (diff)
downloadlinux-ad62701720dd5d2a17c62f6c3bbd6ee629efcfaa.tar.xz
[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 'include/media/drv-intf')
-rw-r--r--include/media/drv-intf/saa7146_vv.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/media/drv-intf/saa7146_vv.h b/include/media/drv-intf/saa7146_vv.h
index 0da6ccc0615b..736f4f2d8290 100644
--- a/include/media/drv-intf/saa7146_vv.h
+++ b/include/media/drv-intf/saa7146_vv.h
@@ -202,14 +202,14 @@ void saa7146_set_gpio(struct saa7146_dev *saa, u8 pin, u8 data);
/* from saa7146_video.c */
extern const struct v4l2_ioctl_ops saa7146_video_ioctl_ops;
extern const struct v4l2_ioctl_ops saa7146_vbi_ioctl_ops;
-extern struct saa7146_use_ops saa7146_video_uops;
+extern const struct saa7146_use_ops saa7146_video_uops;
int saa7146_start_preview(struct saa7146_fh *fh);
int saa7146_stop_preview(struct saa7146_fh *fh);
long saa7146_video_do_ioctl(struct file *file, unsigned int cmd, void *arg);
int saa7146_s_ctrl(struct v4l2_ctrl *ctrl);
/* from saa7146_vbi.c */
-extern struct saa7146_use_ops saa7146_vbi_uops;
+extern const struct saa7146_use_ops saa7146_vbi_uops;
/* resource management functions */
int saa7146_res_get(struct saa7146_fh *fh, unsigned int bit);