diff options
author | Heikki Krogerus <heikki.krogerus@linux.intel.com> | 2019-08-19 13:07:22 +0300 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2019-08-26 11:35:13 +0200 |
commit | 1666faedb567d03cde1d656ae24c6cc253e67373 (patch) | |
tree | e83b326e0893b037bbd41e7f80e95b13c428892f /include/linux/property.h | |
parent | a55aa89aab90fae7c815b0551b07be37db359d76 (diff) | |
download | lwn-1666faedb567d03cde1d656ae24c6cc253e67373.tar.gz lwn-1666faedb567d03cde1d656ae24c6cc253e67373.zip |
software node: Add software_node_find_by_name()
Function that searches software nodes by node name.
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Tested-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/linux/property.h')
-rw-r--r-- | include/linux/property.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/property.h b/include/linux/property.h index 5a910ad79591..9b3d4ca3a73a 100644 --- a/include/linux/property.h +++ b/include/linux/property.h @@ -421,6 +421,10 @@ bool is_software_node(const struct fwnode_handle *fwnode); const struct software_node *to_software_node(struct fwnode_handle *fwnode); struct fwnode_handle *software_node_fwnode(const struct software_node *node); +const struct software_node * +software_node_find_by_name(const struct software_node *parent, + const char *name); + int software_node_register_nodes(const struct software_node *nodes); void software_node_unregister_nodes(const struct software_node *nodes); |