]> rtime.felk.cvut.cz Git - vajnamar/linux-xlnx.git/commitdiff
[media] media: Move MEDIA_ENTITY_MAX_PADS from media-entity.h to media-entity.c
authorSakari Ailus <sakari.ailus@iki.fi>
Wed, 16 Dec 2015 13:32:37 +0000 (11:32 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 11 Jan 2016 14:19:22 +0000 (12:19 -0200)
This isn't really a part of any interface drivers are expected to use. In
order to keep drivers from using it, hide it in media-entity.c. This was
always an arbitrary number and should be removed in the long run.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/media-entity.c
include/media/media-entity.h

index 5bd6f88501e24a867e0a3246bbbfb8b218a47374..32a5f8cae72d4ca8273aecee35481a5ed22cac5f 100644 (file)
@@ -276,6 +276,11 @@ static struct media_entity *stack_pop(struct media_entity_graph *graph)
 #define link_top(en)   ((en)->stack[(en)->top].link)
 #define stack_top(en)  ((en)->stack[(en)->top].entity)
 
+/*
+ * TODO: Get rid of this.
+ */
+#define MEDIA_ENTITY_MAX_PADS          63
+
 /**
  * media_entity_graph_walk_init - Allocate resources for graph walk
  * @graph: Media graph structure that will be used to walk the graph
index 4d963a3684c96a61bb046ef0f82a04770da87bea..f915ed62ac8134d51335d60f6b5392c9bdae53f9 100644 (file)
@@ -73,13 +73,6 @@ struct media_gobj {
 
 #define MEDIA_ENTITY_ENUM_MAX_DEPTH    16
 
-/*
- * The number of pads can't be bigger than the number of entities,
- * as the worse-case scenario is to have one entity linked up to
- * 63 entities.
- */
-#define MEDIA_ENTITY_MAX_PADS          63
-
 /**
  * struct media_entity_enum - An enumeration of media entities.
  *