mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 10:04:04 +02:00
media: staging: imx: Drop custom .unsubscribe_event() handler
The csi_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
ed1390e5af
commit
6ee42dfc29
|
|
@ -1751,12 +1751,6 @@ static int csi_subscribe_event(struct v4l2_subdev *sd, struct v4l2_fh *fh,
|
|||
return v4l2_event_subscribe(fh, sub, 0, NULL);
|
||||
}
|
||||
|
||||
static int csi_unsubscribe_event(struct v4l2_subdev *sd, struct v4l2_fh *fh,
|
||||
struct v4l2_event_subscription *sub)
|
||||
{
|
||||
return v4l2_event_unsubscribe(fh, sub);
|
||||
}
|
||||
|
||||
static int csi_registered(struct v4l2_subdev *sd)
|
||||
{
|
||||
struct csi_priv *priv = v4l2_get_subdevdata(sd);
|
||||
|
|
@ -1872,7 +1866,7 @@ static const struct media_entity_operations csi_entity_ops = {
|
|||
|
||||
static const struct v4l2_subdev_core_ops csi_core_ops = {
|
||||
.subscribe_event = csi_subscribe_event,
|
||||
.unsubscribe_event = csi_unsubscribe_event,
|
||||
.unsubscribe_event = v4l2_event_subdev_unsubscribe,
|
||||
};
|
||||
|
||||
static const struct v4l2_subdev_video_ops csi_video_ops = {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user