PCI: make video_device const
Subsystems (4)
cover PCI: make video_device const
Make video_device const.
Bhumika Goyal (5):
[media] meye: make video_device const
[media] saa7134: make video_device const
[media] solo6x10: make video_device const
[media] sta2x11: make video_device const
[media] tw68: make video_device const
drivers/media/pci/meye/meye.c | 2 +- drivers/media/pci/saa7134/saa7134-empress.c | 2 +- drivers/media/pci/solo6x10/solo6x10-v4l2.c | 2 +- drivers/media/pci/sta2x11/sta2x11_vip.c | 2 +- drivers/media/pci/tw68/tw68-video.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-)
Signature · 1 line
1.9.1
PATCH 1/5 meye: make video_device const
Make this const as it is only used in a copy operation.
--- drivers/media/pci/meye/meye.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/pci/meye/meye.c +1 -1
@@ -1533,7 +1533,7 @@ static int meye_mmap(struct file *file, struct vm_area_struct *vma) .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,
Signature · 1 line
1.9.1
PATCH 2/5 saa7134: make video_device const
In reply to Bhumika GoyalMake this const as it is only used in a copy operation.
--- drivers/media/pci/saa7134/saa7134-empress.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/pci/saa7134/saa7134-empress.c +1 -1
@@ -205,7 +205,7 @@ static int empress_try_fmt_vid_cap(struct file *file, void *priv,/* ----------------------------------------------------------- */ -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,
Signature · 1 line
1.9.1
PATCH 3/5 solo6x10: make video_device const
In reply to Bhumika GoyalMake this const as it is only used in a copy operation.
--- drivers/media/pci/solo6x10/solo6x10-v4l2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/pci/solo6x10/solo6x10-v4l2.c +1 -1
@@ -630,7 +630,7 @@ static int solo_s_ctrl(struct v4l2_ctrl *ctrl) .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,
Signature · 1 line
1.9.1
Ismael Luceno
maintainerRe: [PATCH 3/5] [media] solo6x10: make video_device const
Quoted 23 lines · Bhumika Goyal
Make this const as it is only used in a copy operation.
Signed-off-by Bhumika Goyal <[email protected]>--- drivers/media/pci/solo6x10/solo6x10-v4l2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/media/pci/solo6x10/solo6x10-v4l2.c +1
-1@@ -630,7 +630,7 @@ static int solo_s_ctrl(struct v4l2_ctrl *ctrl) .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,Signature · 1 line
1.9.1
PATCH 4/5 sta2x11: make video_device const
In reply to Bhumika GoyalMake this const as it is only used in a copy operation.
--- drivers/media/pci/sta2x11/sta2x11_vip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/pci/sta2x11/sta2x11_vip.c +1 -1
@@ -754,7 +754,7 @@ static int vidioc_g_fmt_vid_cap(struct file *file, void *priv, .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,
Signature · 1 line
1.9.1
PATCH 5/5 tw68: make video_device const
In reply to Bhumika GoyalMake this const as it is only used in a copy operation.
--- drivers/media/pci/tw68/tw68-video.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/pci/tw68/tw68-video.c +1 -1
@@ -916,7 +916,7 @@ static int vidioc_s_register(struct file *file, void *priv,#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,
Signature · 1 line
1.9.1