Name

of_property_read_u16_array — find and read an array of u16 from a property

Synopsis

int of_property_read_u16_array (const struct device_node * np,
 const char * propname,
 u16 * 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 16-bit value(s) from it.

dts entry of array should be like

property = /bits/ 16 <0x5000 0x6000 0x7000>;

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.