diff options
author | Michael Ellerman <[email protected]> | 2023-12-14 21:31:48 +1100 |
---|---|---|
committer | Michael Ellerman <[email protected]> | 2024-03-03 22:20:29 +1100 |
commit | c029b22f8a98e14988f800d5c0176a9eaec3c8db (patch) | |
tree | 23c568ae23dfdee7aa0646fdfd89bff9f5e2ef83 /scripts/generate_rust_analyzer.py | |
parent | af1ebca503f4c5bb9345dd251faaa825431ce972 (diff) |
of: Add of_machine_compatible_match()
We have of_machine_is_compatible() to check if a machine is compatible
with a single compatible string. However some code is able to support
multiple compatible boards, and so wants to check for one of many
compatible strings.
So add of_machine_compatible_match() which takes a NULL terminated
array of compatible strings to check against the root node's
compatible property.
Compared to an open coded match this is slightly more self
documenting, and also avoids the caller needing to juggle the root
node either directly or via of_find_node_by_path().
Signed-off-by: Christophe Leroy <[email protected]>
Reviewed-by: Rob Herring <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://msgid.link/[email protected]
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions