Commit 0798ce4a authored by Sakari Ailus's avatar Sakari Ailus Committed by Mauro Carvalho Chehab

[media] media: Move MEDIA_ENTITY_MAX_PADS from media-entity.h to media-entity.c

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: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent 030e89ec
...@@ -276,6 +276,11 @@ static struct media_entity *stack_pop(struct media_entity_graph *graph) ...@@ -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 link_top(en) ((en)->stack[(en)->top].link)
#define stack_top(en) ((en)->stack[(en)->top].entity) #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 * media_entity_graph_walk_init - Allocate resources for graph walk
* @graph: Media graph structure that will be used to walk the graph * @graph: Media graph structure that will be used to walk the graph
......
...@@ -73,13 +73,6 @@ struct media_gobj { ...@@ -73,13 +73,6 @@ struct media_gobj {
#define MEDIA_ENTITY_ENUM_MAX_DEPTH 16 #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. * struct media_entity_enum - An enumeration of media entities.
* *
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment