MCPcopy Create free account
hub / github.com/F-Stack/f-stack / of_device_is_compatible

Function of_device_is_compatible

dpdk/drivers/common/dpaax/dpaa_of.c:536–550  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

534}
535
536bool
537of_device_is_compatible(const struct device_node *dev_node,
538 const char *compatible)
539{
540 const struct dt_dir *d;
541
542 DPAAX_HWWARN(!alive, "Device-tree driver not initialised!");
543 if (!dev_node)
544 d = &root_dir;
545 else
546 d = node2dir(dev_node);
547 if (d->compatible && check_compatible(d->compatible, compatible))
548 return true;
549 return false;
550}
551
552static const void *of_get_mac_addr(const struct device_node *np,
553 const char *name)

Callers 3

fman_if_initFunction · 0.85
bman_global_initFunction · 0.85
qman_global_initFunction · 0.85

Calls 2

node2dirFunction · 0.85
check_compatibleFunction · 0.85

Tested by

no test coverage detected