OSDN Git Service

software node: Implement get_named_child_node fwnode callback
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>
Wed, 13 Feb 2019 11:55:49 +0000 (14:55 +0300)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 14 Feb 2019 10:33:15 +0000 (11:33 +0100)
commit344798206f171c5abea7ab1f9762fa526d7f539d
tree10d0ddeba86fc04b36ea8ba97886d14954661b8f
parent2b6e492467c78183bb629bb0a100ea3509b615a5
software node: Implement get_named_child_node fwnode callback

This makes it possible to support drivers that use
fwnode_get_named_child_node() and device_get_named_child_node()
functions.

The node name is for now taken from a device property named
"name". That mimics the old style of naming of the nodes in
devicetree (though with modern flattened DT, the name is
matched against the actual node-name, it used to be done
with a property "name"). In Open Firmware DT the "name"
property is also still being used.

Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/swnode.c