Name

of_property_read_u8_array — find and read an array of u8 from a property

Synopsis

int of_property_read_u8_array (const struct device_node * np,
 const char * propname,
 u8 * out_values,
 size_t sz);
 

Arguments

np

Pointer to node containing the property

propname

Name of the property to be searched

out_values

Pointer used to return the values

sz

Number of array elements to read

Description

Search for a property in a device node and read 8-bit value(s) from it.

dts entry of array should be like

property = /bits/ 8 <0x50 0x60 0x70>;

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.