The video_open() function is just a wrapper around v4l2_fh_open().
Replace it by the latter in the v4l2_file_operations.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
IPU_INSYS_FRAME_FORMAT_RGBA888},
};
-static int video_open(struct file *file)
-{
- return v4l2_fh_open(file);
-}
-
const struct ipu7_isys_pixelformat *ipu7_isys_get_isys_format(u32 pixelformat)
{
unsigned int i;
.poll = vb2_fop_poll,
.unlocked_ioctl = video_ioctl2,
.mmap = vb2_fop_mmap,
- .open = video_open,
+ .open = v4l2_fh_open,
.release = vb2_fop_release,
};