mirror of https://gitee.com/openkylin/linux.git
staging: bcm2835-camera: make video_device const
Make this const as it is only used in a copy operation. Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
d162f80ab6
commit
b9920ca3b5
|
@ -1456,7 +1456,7 @@ static const struct v4l2_file_operations camera0_fops = {
|
|||
.mmap = vb2_fop_mmap,
|
||||
};
|
||||
|
||||
static struct video_device vdev_template = {
|
||||
static const struct video_device vdev_template = {
|
||||
.name = "camera0",
|
||||
.fops = &camera0_fops,
|
||||
.ioctl_ops = &camera0_ioctl_ops,
|
||||
|
|
Loading…
Reference in New Issue