media: pci: make video_device const
authorBhumika Goyal <bhumirks@gmail.com>
Sat, 26 Aug 2017 13:08:11 +0000 (09:08 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Sun, 27 Aug 2017 12:44:58 +0000 (08:44 -0400)
Make these const as they are either used during a copy operation or
passed to a const argument of the function cx88_vdev_init.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/pci/cx88/cx88-blackbird.c
drivers/media/pci/dt3155/dt3155.c
drivers/media/pci/meye/meye.c
drivers/media/pci/saa7134/saa7134-empress.c
drivers/media/pci/solo6x10/solo6x10-v4l2.c
drivers/media/pci/sta2x11/sta2x11_vip.c
drivers/media/pci/tw68/tw68-video.c

index aa49c95..e3101f0 100644 (file)
@@ -1075,7 +1075,7 @@ static const struct v4l2_ioctl_ops mpeg_ioctl_ops = {
        .vidioc_unsubscribe_event    = v4l2_event_unsubscribe,
 };
 
-static struct video_device cx8802_mpeg_template = {
+static const struct video_device cx8802_mpeg_template = {
        .name                 = "cx8802",
        .fops                 = &mpeg_fops,
        .ioctl_ops            = &mpeg_ioctl_ops,
index 6a21969..1775c36 100644 (file)
@@ -499,7 +499,7 @@ static int dt3155_init_board(struct dt3155_priv *pd)
        return 0;
 }
 
-static struct video_device dt3155_vdev = {
+static const struct video_device dt3155_vdev = {
        .name = DT3155_NAME,
        .fops = &dt3155_fops,
        .ioctl_ops = &dt3155_ioctl_ops,
index 0fe76be..49e047e 100644 (file)
@@ -1533,7 +1533,7 @@ static const struct v4l2_ioctl_ops meye_ioctl_ops = {
        .vidioc_default         = vidioc_default,
 };
 
-static struct video_device meye_template = {
+static const struct video_device meye_template = {
        .name           = "meye",
        .fops           = &meye_fops,
        .ioctl_ops      = &meye_ioctl_ops,
index b1d3648..66acfd3 100644 (file)
@@ -205,7 +205,7 @@ static const struct v4l2_ioctl_ops ts_ioctl_ops = {
 
 /* ----------------------------------------------------------- */
 
-static struct video_device saa7134_empress_template = {
+static const struct video_device saa7134_empress_template = {
        .name          = "saa7134-empress",
        .fops          = &ts_fops,
        .ioctl_ops     = &ts_ioctl_ops,
index 3266fc2..99ffd1e 100644 (file)
@@ -630,7 +630,7 @@ static const struct v4l2_ioctl_ops solo_v4l2_ioctl_ops = {
        .vidioc_unsubscribe_event       = v4l2_event_unsubscribe,
 };
 
-static struct video_device solo_v4l2_template = {
+static const struct video_device solo_v4l2_template = {
        .name                   = SOLO6X10_NAME,
        .fops                   = &solo_v4l2_fops,
        .ioctl_ops              = &solo_v4l2_ioctl_ops,
index 6343d24..eb5a9ea 100644 (file)
@@ -754,7 +754,7 @@ static const struct v4l2_ioctl_ops vip_ioctl_ops = {
        .vidioc_unsubscribe_event = v4l2_event_unsubscribe,
 };
 
-static struct video_device video_dev_template = {
+static const struct video_device video_dev_template = {
        .name = KBUILD_MODNAME,
        .release = video_device_release_empty,
        .fops = &vip_fops,
index 58c4dd7..8c1f4a0 100644 (file)
@@ -916,7 +916,7 @@ static const struct v4l2_ioctl_ops video_ioctl_ops = {
 #endif
 };
 
-static struct video_device tw68_video_template = {
+static const struct video_device tw68_video_template = {
        .name                   = "tw68_video",
        .fops                   = &video_fops,
        .ioctl_ops              = &video_ioctl_ops,