MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / rt_ofw_node_is_compatible

Function rt_ofw_node_is_compatible

components/drivers/ofw/base.c:423–433  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

421}
422
423rt_bool_t rt_ofw_node_is_compatible(const struct rt_ofw_node *np, const char *compatible)
424{
425 rt_bool_t res = RT_FALSE;
426
427 if (np)
428 {
429 res = ofw_node_index_of_compatible(np, compatible) >= 0;
430 }
431
432 return res;
433}
434
435static struct rt_ofw_node_id *ofw_prop_match(struct rt_ofw_prop *prop, const struct rt_ofw_node_id *ids)
436{

Callers 2

Calls 1

Tested by

no test coverage detected