[media] media-entitiy: add a function to create multiple links
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>
Wed, 30 Dec 2015 11:45:48 +0000 (09:45 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 11 Jan 2016 14:19:26 +0000 (12:19 -0200)
commitb01cc9ce7c13e0463575332dfa3171727f706afb
tree12ceed1549c68cdcb0fbfad45b537b44584a18d5
parent33c6853347c13b7cf8d11c12714cd855a84bc992
[media] media-entitiy: add a function to create multiple links

Sometimes, it is desired to create 1:n and n:1 or even
n:n links between different entities with the same
function.

This is actually needed to support DVB devices that
have multiple frontends. While we could do a function
like that internally at the DVB core, such function is
generic enough to be at media-entity, and it could be
useful on some other places.

So, add such function.

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/media-entity.c
include/media/media-entity.h