]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
tty: serial: fsl_lpuart: use port struct directly to simply code
authorSherry Sun <sherry.sun@nxp.com>
Wed, 12 Mar 2025 02:39:03 +0000 (10:39 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Apr 2025 12:39:36 +0000 (14:39 +0200)
commitac08fa36d8cbcdbe39eb490fc2dd4345d50a433c
tree8babef6d4b94940d846a4fcf68338adedb0c8e48
parent82719d0e7584bf78aebf66fd94f12aa437c94031
tty: serial: fsl_lpuart: use port struct directly to simply code

commit 3cc16ae096f164ae0c6b98416c25a01db5f3a529 upstream.

Most lpuart functions have the parameter struct uart_port *port, but
still use the &sport->port to get the uart_port instead of use it
directly, let's simply the code logic, directly use this struct instead
of covert it from struct sport.

Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
Link: https://lore.kernel.org/r/20250312023904.1343351-3-sherry.sun@nxp.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/fsl_lpuart.c