From: Laurent Pinchart Date: Sun, 26 Oct 2025 18:12:37 +0000 (+0200) Subject: media: staging: ipu7: isys: Drop video_open() function X-Git-Tag: v6.19-rc1~159^2~128 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=27aa2085c08d56656396fc3bfb4c8115843c1c5b;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: Sakari Ailus Signed-off-by: Hans Verkuil --- diff --git a/drivers/staging/media/ipu7/ipu7-isys-video.c b/drivers/staging/media/ipu7/ipu7-isys-video.c index 1a7c8a91fffb3..8c6730833f24f 100644 --- a/drivers/staging/media/ipu7/ipu7-isys-video.c +++ b/drivers/staging/media/ipu7/ipu7-isys-video.c @@ -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, };