summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/media/media-entity.c5
-rw-r--r--include/media/media-entity.h7
2 files changed, 5 insertions, 7 deletions
diff --git a/drivers/media/media-entity.c b/drivers/media/media-entity.c
index 5bd6f88501e2..32a5f8cae72d 100644
--- a/drivers/media/media-entity.c
+++ b/drivers/media/media-entity.c
@@ -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
diff --git a/include/media/media-entity.h b/include/media/media-entity.h
index 4d963a3684c9..f915ed62ac81 100644
--- a/include/media/media-entity.h
+++ b/include/media/media-entity.h
@@ -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.
*