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

Michael Ellerman mpe at ellerman.id.au
Thu Dec 6 14:34:56 AEDT 2018


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

LGTM.

Acked-by: Michael Ellerman <mpe at ellerman.id.au> (powerpc)

cheers


More information about the Linuxppc-dev mailing list