From: Mauro Carvalho Chehab Date: Wed, 16 Dec 2015 17:18:25 +0000 (-0200) Subject: [media] media-entity: increase max number of PADs X-Git-Tag: v4.5-rc1~115^2~10 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=430a672c83c3e2e9a96c777a874f345c8d21f929;p=karo-tx-linux.git [media] media-entity: increase max number of PADs The DVB drivers may have 257 PADs. Get the next power of two that would accomodate that amount. Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/media-entity.c b/drivers/media/media-entity.c index f63be23e6ed4..eb38bc35320a 100644 --- a/drivers/media/media-entity.c +++ b/drivers/media/media-entity.c @@ -261,7 +261,7 @@ static struct media_entity *stack_pop(struct media_entity_graph *graph) /* * TODO: Get rid of this. */ -#define MEDIA_ENTITY_MAX_PADS 63 +#define MEDIA_ENTITY_MAX_PADS 512 /** * media_entity_graph_walk_init - Allocate resources for graph walk