]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
media: vimc: common: remove unused function 'vimc_pipeline_s_stream'
authorDafna Hirschfeld <dafna.hirschfeld@collabora.com>
Tue, 22 Oct 2019 08:46:08 +0000 (05:46 -0300)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Thu, 24 Oct 2019 22:02:29 +0000 (19:02 -0300)
The function 'vimc_pipeline_s_stream' is not used and can be
removed.

Signed-off-by: Dafna Hirschfeld <dafna.hirschfeld@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/vimc/vimc-common.c
drivers/media/platform/vimc/vimc-common.h

index 611f4e0448b8540d391b2b9b490382af182fb33a..31bd198f16fe66d67bf555d93c3089eacc7bfc02 100644 (file)
@@ -214,34 +214,6 @@ struct media_pad *vimc_pads_init(u16 num_pads, const unsigned long *pads_flag)
        return pads;
 }
 
-int vimc_pipeline_s_stream(struct media_entity *ent, int enable)
-{
-       struct v4l2_subdev *sd;
-       struct media_pad *pad;
-       unsigned int i;
-       int ret;
-
-       for (i = 0; i < ent->num_pads; i++) {
-               if (ent->pads[i].flags & MEDIA_PAD_FL_SOURCE)
-                       continue;
-
-               /* Start the stream in the subdevice direct connected */
-               pad = media_entity_remote_pad(&ent->pads[i]);
-               if (!pad)
-                       continue;
-
-               if (!is_media_entity_v4l2_subdev(pad->entity))
-                       return -EINVAL;
-
-               sd = media_entity_to_v4l2_subdev(pad->entity);
-               ret = v4l2_subdev_call(sd, video, s_stream, enable);
-               if (ret && ret != -ENOIOCTLCMD)
-                       return ret;
-       }
-
-       return 0;
-}
-
 static int vimc_get_mbus_format(struct media_pad *pad,
                                struct v4l2_subdev_format *fmt)
 {
index af5b1166dc1f2d4dac93614c101b3d81bac0300e..c4471e72ad2b75750f0819ec4b2f23dbe5e483ef 100644 (file)
@@ -192,17 +192,6 @@ static inline void vimc_pads_cleanup(struct media_pad *pads)
        kfree(pads);
 }
 
-/**
- * vimc_pipeline_s_stream - start stream through the pipeline
- *
- * @ent:               the pointer to struct media_entity for the node
- * @enable:            1 to start the stream and 0 to stop
- *
- * Helper function to call the s_stream of the subdevices connected
- * in all the sink pads of the entity
- */
-int vimc_pipeline_s_stream(struct media_entity *ent, int enable);
-
 /**
  * vimc_pix_map_by_index - get vimc_pix_map struct by its index
  *