Name
of_console_check —
add name to preferred console list if node is DT stdout
Synopsis
bool of_console_check ( | struct device_node * dn, |
| char * name, |
| int index) ; |
Arguments
dn
Pointer to node
name
Name to use for preferred console without index
index
Index to use for preferred console
Description
If the given device node is the devicetree stdout node specified by the
stdout related magic properties in the * /aliases or /chosen node, and
console_set_on_cmdline is false, then add (name
, index
) to the preferred
console list.
An example of a name
is “ttyS”.
Return
True if added as a preferred console, else false.