Name

of_build_overlay_info — Build an overlay info array

Synopsis

int of_build_overlay_info (struct of_overlay * ov,
 struct device_node * tree);
 

Arguments

ov

Pointer to overlay to be constructed

tree

Device node containing all the overlays

Description

Helper function that given a tree containing overlay information, allocates and builds an overlay info array containing it, ready for use by of_overlay_apply.

See also

of_fill_overlay_info, of_free_overlay_info

Return

0 on success, else -ENOMEM on memory allocation failure, -ENODEV if no valid overlay found in tree.