Name

of_alias_get_id — get alias id for the given device_node

Synopsis

int of_alias_get_id (struct device_node * np,
 const char * stem);
 

Arguments

np

Pointer to node

stem

Alias stem of the given device_node

Description

The function searches the lookup table to get the alias id from /aliases for the given device_node and alias stem. The stem of an alias is the alias name stripped of trailing digits.

Return

The alias id if found else -ENODEV.