Name

of_property_count_elems_of_size — count the number of elements in a property

Synopsis

int of_property_count_elems_of_size (const struct device_node * np,
 const char * propname,
 int elem_size);
 

Arguments

np

Pointer to node containing the property

propname

Name of the property to be searched

elem_size

Size of the individual element

Description

Search for a property in a device node and count the number of elements of size elem_size in it.

Return

Number of elements on sucess, -EINVAL if the property does not exist or its length does not match a multiple of elem_size *, and -ENODATA if the property does not have a value.