diff options
author | Sakari Ailus <sakari.ailus@linux.intel.com> | 2019-10-03 14:32:11 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2019-10-11 11:26:55 +0200 |
commit | 87e5e95db31a27d117fbb4a5d464f44adb4c2ee2 (patch) | |
tree | 8169cd9ea74f307d7b31d10fddefccafed9ce813 /drivers/of | |
parent | device property: Move fwnode_get_parent() up (diff) | |
download | linux-87e5e95db31a27d117fbb4a5d464f44adb4c2ee2.tar.xz linux-87e5e95db31a27d117fbb4a5d464f44adb4c2ee2.zip |
device property: Add functions for accessing node's parents
Add two convenience functions for accessing node's parents:
fwnode_count_parents() returns the number of parent nodes a given node
has. fwnode_get_nth_parent() returns node's parent at a given distance
from the node itself.
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/of')
0 files changed, 0 insertions, 0 deletions