diff options
author | 2020-04-08 19:09:02 +0300 | |
---|---|---|
committer | 2020-04-20 14:41:56 +0300 | |
commit | 02094d54870590a667f822e4032bbd1ba6c48d00 (patch) | |
tree | 9d3bcbcd2307c77280560827edba97116061483b /include/linux/property.h | |
parent | device property: export set_secondary_fwnode() to modules (diff) | |
download | linux-02094d54870590a667f822e4032bbd1ba6c48d00.tar.gz linux-02094d54870590a667f822e4032bbd1ba6c48d00.tar.bz2 linux-02094d54870590a667f822e4032bbd1ba6c48d00.zip |
software node: Allow register and unregister software node groups
Sometimes it's more convenient to register a set of individual software nodes
grouped together. Add couple of functions for that.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Rafael J. Wysocki <rjw@rjwysocki.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Tested-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Diffstat (limited to 'include/linux/property.h')
-rw-r--r-- | include/linux/property.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/property.h b/include/linux/property.h index d86de017c689..c7b5f3db36aa 100644 --- a/include/linux/property.h +++ b/include/linux/property.h @@ -440,6 +440,9 @@ software_node_find_by_name(const struct software_node *parent, int software_node_register_nodes(const struct software_node *nodes); void software_node_unregister_nodes(const struct software_node *nodes); +int software_node_register_node_group(const struct software_node **node_group); +void software_node_unregister_node_group(const struct software_node **node_group); + int software_node_register(const struct software_node *node); int software_node_notify(struct device *dev, unsigned long action); |