]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
media: rcar-vin: Fold event notifier into only user
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Fri, 13 Jun 2025 15:34:34 +0000 (17:34 +0200)
committerHans Verkuil <hverkuil@xs4all.nl>
Mon, 16 Jun 2025 06:52:15 +0000 (08:52 +0200)
With Gen2 converted to use the common media device there is only one
caller left for the helper to notify a video device of an event, fold it
in.

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Link: https://lore.kernel.org/r/20250613153434.2001800-14-niklas.soderlund+renesas@ragnatech.se
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
drivers/media/platform/renesas/rcar-vin/rcar-v4l2.c

index 3a4c7433f0610652a4db8bdf8b726e8ff9255742..9b1e3a9d3249b1af59a77ad5b63ecb78bce0cd51 100644 (file)
@@ -656,18 +656,6 @@ void rvin_v4l2_unregister(struct rvin_dev *vin)
        video_unregister_device(&vin->vdev);
 }
 
-static void rvin_notify_video_device(struct rvin_dev *vin,
-                                    unsigned int notification, void *arg)
-{
-       switch (notification) {
-       case V4L2_DEVICE_NOTIFY_EVENT:
-               v4l2_event_queue(&vin->vdev, arg);
-               break;
-       default:
-               break;
-       }
-}
-
 static void rvin_notify(struct v4l2_subdev *sd,
                        unsigned int notification, void *arg)
 {
@@ -693,7 +681,13 @@ static void rvin_notify(struct v4l2_subdev *sd,
                if (remote != sd)
                        continue;
 
-               rvin_notify_video_device(vin, notification, arg);
+               switch (notification) {
+               case V4L2_DEVICE_NOTIFY_EVENT:
+                       v4l2_event_queue(&vin->vdev, arg);
+                       break;
+               default:
+                       break;
+               }
        }
 }