Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Laurent Pinchart and committed by
Hans Verkuil
ed1390e5 1182d0dd

+1 -8
+1 -8
drivers/staging/media/atomisp/pci/atomisp_subdev.c
··· 161 161 return v4l2_event_subscribe(fh, sub, 16, NULL); 162 162 } 163 163 164 - static int isp_subdev_unsubscribe_event(struct v4l2_subdev *sd, 165 - struct v4l2_fh *fh, 166 - struct v4l2_event_subscription *sub) 167 - { 168 - return v4l2_event_unsubscribe(fh, sub); 169 - } 170 - 171 164 /* 172 165 * isp_subdev_enum_mbus_code - Handle pixel format enumeration 173 166 * @sd: pointer to v4l2 subdev structure ··· 568 575 static const struct v4l2_subdev_core_ops isp_subdev_v4l2_core_ops = { 569 576 .ioctl = isp_subdev_ioctl, 570 577 .subscribe_event = isp_subdev_subscribe_event, 571 - .unsubscribe_event = isp_subdev_unsubscribe_event, 578 + .unsubscribe_event = v4l2_event_subdev_unsubscribe, 572 579 }; 573 580 574 581 /* V4L2 subdev pad operations */