diff options
author | Saravana Kannan <saravanak@google.com> | 2020-11-21 05:02:25 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-12-09 21:10:21 +0300 |
commit | b5d3e2fbcb10957521af14c4256cd0e5f68b9234 (patch) | |
tree | c40d818e24ef8da83ed6bd939ab2092d074967ed /scripts/generate_rust_analyzer.py | |
parent | ac66c5bbb4371073dcace77e47c234d2e36a006b (diff) | |
download | linux-b5d3e2fbcb10957521af14c4256cd0e5f68b9234.tar.xz |
device property: Add fwnode_is_ancestor_of() and fwnode_get_next_parent_dev()
Add fwnode_is_ancestor_of() helper function to check if a fwnode is an
ancestor of another fwnode.
Add fwnode_get_next_parent_dev() helper function that take as input a
fwnode and finds the closest ancestor fwnode that has a corresponding
struct device and returns that struct device.
Signed-off-by: Saravana Kannan <saravanak@google.com>
Link: https://lore.kernel.org/r/20201121020232.908850-11-saravanak@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions