]> rtime.felk.cvut.cz Git - zynq/linux.git/commit
tty: Use of_node_name_{eq,prefix} for node name comparisons
authorRob Herring <robh@kernel.org>
Wed, 5 Dec 2018 19:50:43 +0000 (13:50 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Dec 2018 15:12:17 +0000 (16:12 +0100)
commit778ec49c14018730ec177bdd34b17e15e2e748b8
tree874d9d2c0fdaa8b6adb92cf8378413035dc61235
parentd72402145ace0697a6a9e8e75a3de5bf3375f78d
tty: Use of_node_name_{eq,prefix} for node name comparisons

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 <benh@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Jiri Slaby <jslaby@suse.com>
Cc: linuxppc-dev@lists.ozlabs.org
Cc: linux-serial@vger.kernel.org
Cc: sparclinux@vger.kernel.org
Signed-off-by: Rob Herring <robh@kernel.org>
Acked-by: Michael Ellerman <mpe@ellerman.id.au>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/hvc/hvc_opal.c
drivers/tty/hvc/hvc_vio.c
drivers/tty/serial/pmac_zilog.c
drivers/tty/serial/suncore.c
drivers/tty/serial/sunsu.c