Name

of_fdt_match — Check if node matches a list of compatible values

Synopsis

int of_fdt_match (const void * blob,
 unsigned long node,
 const char *const * compat);
 

Arguments

blob

Device tree blob (flattened device tree)

node

Node offset in blob

compat

NULL terminated list of pointers to compatible strings

Description

Note that the score is the opposite of of_device_is_compatible, which reports larger scores as more compatible.

Return

0 if no match, otherwise non-zero value with smaller values returned for more specific (more leftmost in the compatible list) compatible values.