]> git.baikalelectronics.ru Git - kernel.git/commit
media: device property: Add a function to test is a fwnode is a graph endpoint
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Wed, 1 Jul 2020 06:21:37 +0000 (08:21 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Sun, 19 Jul 2020 12:16:09 +0000 (14:16 +0200)
commitdb7365fbce0f9d3ab5bfb8044556bf2b8a99597a
tree72219435a624de00328a81e6253d66d737a40afe
parent89a42415d958eb4afe6386209ee42719ffee640c
media: device property: Add a function to test is a fwnode is a graph endpoint

Drivers may need to test if a fwnode is a graph endpoint. To avoid
hand-written solutions that wouldn't work for all fwnode types, add a
new fwnode_graph_is_endpoint() function for this purpose. We don't need
to wire it up to different backends for OF and ACPI for now, as the
implementation can simply be based on checkout the presence of a
remote-endpoint property.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
include/linux/property.h