OSDN Git Service

media: v4l2-mc: add v4l2_create_fwnode_links helpers
authorSteve Longerbeam <slongerbeam@gmail.com>
Fri, 1 May 2020 17:15:37 +0000 (19:15 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 18 May 2020 09:14:05 +0000 (11:14 +0200)
commit0d3c81e82da90f0752a09c38ffae7e7ffec01b33
tree019206dccf42ce4f15f4666266cf10dbe3d04e99
parent8fe784b9abb296124d0182eac35b96dbc29d049a
media: v4l2-mc: add v4l2_create_fwnode_links helpers

Add functions to create media links between source and sink subdevices,
based on the fwnode endpoint connections between them:

v4l2_create_fwnode_links_to_pad() - create links from a source subdev to
                                    a single sink pad based on fwnode
                                    endpoint connections.

v4l2_create_fwnode_links() - create all links from a source to sink subdev
                             based on fwnode endpoint connections.

These functions can be used in a sink's v4l2-async notifier subdev
bound callback to make the links from the bound subdev.

Signed-off-by: Steve Longerbeam <slongerbeam@gmail.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/v4l2-core/v4l2-mc.c
include/media/v4l2-mc.h