Skip to content

Commit

Permalink
media: v4l: omap3isp: make v4l2_file_operations const
Browse files Browse the repository at this point in the history
Make this const as it is only stored in a const field of a
video_device structure.

Signed-off-by: Bhumika Goyal <[email protected]>
Signed-off-by: Sakari Ailus <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
  • Loading branch information
goyalbhumika authored and mchehab committed Apr 23, 2018
1 parent da112f1 commit cdc9c74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/platform/omap3isp/ispvideo.c
Original file line number Diff line number Diff line change
Expand Up @@ -1403,7 +1403,7 @@ static int isp_video_mmap(struct file *file, struct vm_area_struct *vma)
return vb2_mmap(&vfh->queue, vma);
}

static struct v4l2_file_operations isp_video_fops = {
static const struct v4l2_file_operations isp_video_fops = {
.owner = THIS_MODULE,
.unlocked_ioctl = video_ioctl2,
.open = isp_video_open,
Expand Down

0 comments on commit cdc9c74

Please sign in to comment.