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: 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>

authored by

Laurent Pinchart and committed by
Hans Verkuil
6ee42dfc ed1390e5

+1 -7
+1 -7
drivers/staging/media/imx/imx-media-csi.c
··· 1751 1751 return v4l2_event_subscribe(fh, sub, 0, NULL); 1752 1752 } 1753 1753 1754 - static int csi_unsubscribe_event(struct v4l2_subdev *sd, struct v4l2_fh *fh, 1755 - struct v4l2_event_subscription *sub) 1756 - { 1757 - return v4l2_event_unsubscribe(fh, sub); 1758 - } 1759 - 1760 1754 static int csi_registered(struct v4l2_subdev *sd) 1761 1755 { 1762 1756 struct csi_priv *priv = v4l2_get_subdevdata(sd); ··· 1866 1872 1867 1873 static const struct v4l2_subdev_core_ops csi_core_ops = { 1868 1874 .subscribe_event = csi_subscribe_event, 1869 - .unsubscribe_event = csi_unsubscribe_event, 1875 + .unsubscribe_event = v4l2_event_subdev_unsubscribe, 1870 1876 }; 1871 1877 1872 1878 static const struct v4l2_subdev_video_ops csi_video_ops = {