Name

of_machine_is_compatible — test root of device tree for given compatible value

Synopsis

int of_machine_is_compatible (const char * compat);
 

Arguments

compat

compatible string to look for in the root node compatible property

Return

0 for no match, and a positive integer on match. The return value is a relative score with larger values indicating better matches.