]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
media: staging: ipu7: isys: Drop video_open() function
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Sun, 26 Oct 2025 18:12:37 +0000 (20:12 +0200)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Wed, 29 Oct 2025 13:07:01 +0000 (14:07 +0100)
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>
drivers/staging/media/ipu7/ipu7-isys-video.c

index 1a7c8a91fffb38d1a9b20f896a332a88d8060095..8c6730833f24f469e53c27d2a6a82134fb67e3c2 100644 (file)
@@ -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,
 };