Name

of_fdt_is_compatible — Check if node matches a compatible value

Synopsis

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

Arguments

blob

Pointer to device tree blob (flattened device tree)

node

Node offset in blob

compat

Pointer to compatible string

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.