| 735 | } |
| 736 | |
| 737 | int fdt_node_check_compatible(const void *fdt, int nodeoffset, |
| 738 | const char *compatible) |
| 739 | { |
| 740 | const void *prop; |
| 741 | int len; |
| 742 | |
| 743 | prop = fdt_getprop(fdt, nodeoffset, "compatible", &len); |
| 744 | if (!prop) |
| 745 | return len; |
| 746 | |
| 747 | return !fdt_stringlist_contains(prop, len, compatible); |
| 748 | } |
| 749 | |
| 750 | int fdt_node_offset_by_compatible(const void *fdt, int startoffset, |
| 751 | const char *compatible) |
no test coverage detected