Name

of_property_read_u32_index — find and read a u32 from a multi-value property

Synopsis

int of_property_read_u32_index (const struct device_node * np,
 const char * propname,
 u32 index,
 u32 * out_value);
 

Arguments

np

Pointer to node containing the property

propname

Name of the property to be searched

index

Index of the u32 in the list of values

out_value

Pointer used to return the value

Description

Search for a property in a device node and read nth 32-bit value from it.

Return

0 on success, -EINVAL if the property does not exist, -ENODATA if property does not have a value, and -EOVERFLOW if the property data is not large enough.