[media] v4l2-mc: add a generic function to create the media graph
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>
Fri, 5 Feb 2016 09:02:43 +0000 (07:02 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Wed, 10 Feb 2016 09:23:40 +0000 (07:23 -0200)
commit54d0dbac1266d2b9a6b5a87316162a068ad545bf
tree4dfe3f8a480f4cdccb2e2c441264be44dea9517f
parent85e91f80cfc6c626f9afe1a4ca66447b8fd74315
[media] v4l2-mc: add a generic function to create the media graph

The em28xx_v4l2_create_media_graph() is almost generic enough to
be at the core, as an ancillary function. Make it even more generic,
by getting rid of em28xx-specific code, relying only at the
media_device, in order to discover all entities found on PC-customer's
hardware and add it at the V4L2 core.

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/v4l2-core/Makefile
drivers/media/v4l2-core/v4l2-mc.c [new file with mode: 0644]
include/media/v4l2-mc.h