summaryrefslogtreecommitdiffstats
path: root/drivers/media/pci/tw5864/tw5864-video.c
diff options
context:
space:
mode:
authorAndrey Utkin2016-09-13 01:02:38 +0200
committerMauro Carvalho Chehab2016-09-19 19:17:19 +0200
commite4011b69ab329cc0d238d4dc530ab870c566c566 (patch)
tree87c4561b3a70beb639d635f3193b22ae65232d5c /drivers/media/pci/tw5864/tw5864-video.c
parent[media] tw5864: constify vb2_ops structure (diff)
downloadkernel-qcow2-linux-e4011b69ab329cc0d238d4dc530ab870c566c566.tar.gz
kernel-qcow2-linux-e4011b69ab329cc0d238d4dc530ab870c566c566.tar.xz
kernel-qcow2-linux-e4011b69ab329cc0d238d4dc530ab870c566c566.zip
[media] tw5864: constify struct video_device template
tw5864_video_template is used for filling of actual video_device structures. It is copied by value, and is not used for anything else. Signed-off-by: Andrey Utkin <andrey.utkin@corp.bluecherry.net> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/pci/tw5864/tw5864-video.c')
-rw-r--r--drivers/media/pci/tw5864/tw5864-video.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/pci/tw5864/tw5864-video.c b/drivers/media/pci/tw5864/tw5864-video.c
index 7401b64b1784..652a059b2e0a 100644
--- a/drivers/media/pci/tw5864/tw5864-video.c
+++ b/drivers/media/pci/tw5864/tw5864-video.c
@@ -912,7 +912,7 @@ static const struct v4l2_ioctl_ops video_ioctl_ops = {
#endif
};
-static struct video_device tw5864_video_template = {
+static const struct video_device tw5864_video_template = {
.name = "tw5864_video",
.fops = &video_fops,
.ioctl_ops = &video_ioctl_ops,