media: usb: make video_device const
Make these const as they are only used during a copy operation. Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Acked-by: Mike Isely <isely@pobox.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
此提交包含在:
@@ -901,7 +901,7 @@ static const struct v4l2_ioctl_ops video_ioctl_ops = {
|
||||
.vidioc_unsubscribe_event = v4l2_event_unsubscribe,
|
||||
};
|
||||
|
||||
static struct video_device go7007_template = {
|
||||
static const struct video_device go7007_template = {
|
||||
.name = "go7007",
|
||||
.fops = &go7007_fops,
|
||||
.release = video_device_release_empty,
|
||||
|
新增問題並參考
封鎖使用者