[media] tw5864: constify struct video_device template
authorAndrey Utkin <andrey.utkin@corp.bluecherry.net>
Mon, 12 Sep 2016 23:02:38 +0000 (20:02 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Mon, 19 Sep 2016 17:17:19 +0000 (14:17 -0300)
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>
drivers/media/pci/tw5864/tw5864-video.c

index 7401b64b1784705086dc352ce9fb6cff52969aca..652a059b2e0abb3c9bdf9139a69328c7cd1cc72a 100644 (file)
@@ -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,