]> git.baikalelectronics.ru Git - kernel.git/commit
media: device property: Call fwnode_graph_get_endpoint_by_id() for fwnode->secondary
authorDaniel Scally <djrscally@gmail.com>
Thu, 7 Jan 2021 13:28:27 +0000 (14:28 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 26 Jan 2021 18:24:18 +0000 (19:24 +0100)
commit04db5e27f80c4431d2ff58dabc9583937ad8b1ba
tree52b26c06c9eb0dee9860cd28cfe6fbf521caaacd
parent751358882e0f1d1ef9acf2c2c707dbf94a085d6f
media: device property: Call fwnode_graph_get_endpoint_by_id() for fwnode->secondary

This function is used to find fwnode endpoints against a device. In
some instances those endpoints are software nodes which are children of
fwnode->secondary. Add support to fwnode_graph_get_endpoint_by_id() to
find those endpoints by recursively calling itself passing the ptr to
fwnode->secondary in the event no endpoint is found for the primary.

Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Daniel Scally <djrscally@gmail.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/base/property.c