Re: [PATCH] tty: Use of_node_name_{eq, prefix} for node name comparisons

2018-12-05 Thread Michael Ellerman
Rob Herring writes: > Convert string compares of DT node names to use of_node_name_eq helper > instead. This removes direct access to the node name pointer. > > For hvc, the code can also be simplified by using of_stdout pointer > instead of searching again for the stdout node. > > Cc: Benjamin

Re: [PATCH] tty: Use of_node_name_{eq,prefix} for node name comparisons

2018-12-05 Thread David Miller
From: Rob Herring Date: Wed, 5 Dec 2018 13:50:43 -0600 > Convert string compares of DT node names to use of_node_name_eq helper > instead. This removes direct access to the node name pointer. > > For hvc, the code can also be simplified by using of_stdout pointer > instead of searching again

[PATCH] tty: Use of_node_name_{eq,prefix} for node name comparisons

2018-12-05 Thread Rob Herring
Convert string compares of DT node names to use of_node_name_eq helper instead. This removes direct access to the node name pointer. For hvc, the code can also be simplified by using of_stdout pointer instead of searching again for the stdout node. Cc: Benjamin Herrenschmidt Cc: Paul Mackerras