]> git.baikalelectronics.ru Git - kernel.git/commit
driver core: Add fw_devlink_parse_fwtree()
authorSaravana Kannan <saravanak@google.com>
Sat, 21 Nov 2020 02:02:27 +0000 (18:02 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Dec 2020 18:10:21 +0000 (19:10 +0100)
commit48ab60d9ad41115669a1a0b669333ef5c6ea114c
treebf50ae352978d0d8d732cef916af46e50ddb9256
parent8fa8f4a0ccc44427b29442f31e10ced7eda176b4
driver core: Add fw_devlink_parse_fwtree()

This function is a wrapper around fwnode_operations.add_links().

This function parses each node in a fwnode tree and create fwnode links
for each of those nodes. The information for creating the fwnode links
(the supplier and consumer fwnode) is obtained by parsing the properties
in each of the fwnodes.

This function also ensures that no fwnode is parsed more than once by
marking the fwnodes as parsed.

Signed-off-by: Saravana Kannan <saravanak@google.com>
Link: https://lore.kernel.org/r/20201121020232.908850-13-saravanak@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/core.c
include/linux/fwnode.h