media: staging: ipu7: isys: Drop video_open() function
Subsystems (3)
PATCH 1/1 media: staging: ipu7: isys: Drop video_open() function
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 <[email protected]>
--- drivers/staging/media/ipu7/ipu7-isys-video.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-)
drivers/staging/media/ipu7/ipu7-isys-video.c +1 -6
@@ -88,11 +88,6 @@ const struct ipu7_isys_pixelformat ipu7_isys_pfmts[] = { 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;
@@ -867,7 +862,7 @@ static const struct v4l2_file_operations isys_fops = { .poll = vb2_fop_poll, .unlocked_ioctl = video_ioctl2, .mmap = vb2_fop_mmap, - .open = video_open, + .open = v4l2_fh_open, .release = vb2_fop_release, };
base-commit: ea299a2164262ff787c9d33f46049acccd120672
Signature · 3 lines
Regards, Laurent Pinchart