]> www.infradead.org Git - users/jedix/linux-maple.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, 20 Mar 2025 15:07:21 +0000 (08:07 -0700)
commit3cc16ae096f164ae0c6b98416c25a01db5f3a529
treea4be52cd4e706ef922f8f810416107556fea62f3
parentb6a8f6ab2c53e5ea3c7f2a3978db378a89bb7595
tty: serial: fsl_lpuart: use port struct directly to simply code

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