mirror of
https://github.com/torvalds/linux.git
synced 2026-05-31 02:24:24 +02:00
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 <laurent.pinchart@ideasonboard.com> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
This commit is contained in:
parent
1182d0dde2
commit
ed1390e5af
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user