]> www.infradead.org Git - users/hch/misc.git/commitdiff
media: staging: atomisp: Drop custom .unsubscribe_event() handler
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Fri, 1 Aug 2025 21:19:32 +0000 (00:19 +0300)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Mon, 25 Aug 2025 13:40:33 +0000 (15:40 +0200)
The isp_subdev_unsubscribe_event() function simply calls
v4l2_event_unsubscribe(), forwarding its arguments. Replace it with the
v4l2_event_subdev_unsubscribe() helper that performs exactly the same
operation.

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/atomisp/pci/atomisp_subdev.c

index 22c0ae0b1b7b756f4c424a62925f62040750a3a7..3d56ca83ecb7c79f4f1c374f9a4f171626f0b180 100644 (file)
@@ -161,13 +161,6 @@ static int isp_subdev_subscribe_event(struct v4l2_subdev *sd,
        return v4l2_event_subscribe(fh, sub, 16, NULL);
 }
 
-static int isp_subdev_unsubscribe_event(struct v4l2_subdev *sd,
-                                       struct v4l2_fh *fh,
-                                       struct v4l2_event_subscription *sub)
-{
-       return v4l2_event_unsubscribe(fh, sub);
-}
-
 /*
  * isp_subdev_enum_mbus_code - Handle pixel format enumeration
  * @sd: pointer to v4l2 subdev structure
@@ -575,7 +568,7 @@ static int isp_subdev_set_format(struct v4l2_subdev *sd,
 static const struct v4l2_subdev_core_ops isp_subdev_v4l2_core_ops = {
        .ioctl = isp_subdev_ioctl,
        .subscribe_event = isp_subdev_subscribe_event,
-       .unsubscribe_event = isp_subdev_unsubscribe_event,
+       .unsubscribe_event = v4l2_event_subdev_unsubscribe,
 };
 
 /* V4L2 subdev pad operations */