From: Laurent Pinchart Date: Fri, 1 Aug 2025 21:19:32 +0000 (+0300) Subject: media: staging: atomisp: Drop custom .unsubscribe_event() handler X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=ed1390e5af8c0ead2bf4f62737363fdfa01a8340;p=users%2Fhch%2Fmisc.git media: staging: atomisp: Drop custom .unsubscribe_event() handler 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 Signed-off-by: Sakari Ailus Signed-off-by: Hans Verkuil --- diff --git a/drivers/staging/media/atomisp/pci/atomisp_subdev.c b/drivers/staging/media/atomisp/pci/atomisp_subdev.c index 22c0ae0b1b7b..3d56ca83ecb7 100644 --- a/drivers/staging/media/atomisp/pci/atomisp_subdev.c +++ b/drivers/staging/media/atomisp/pci/atomisp_subdev.c @@ -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 */