tty: serial: amba-pl010: use more uart_port pointers
authorJiri Slaby <jslaby@suse.cz>
Thu, 24 Feb 2022 11:10:27 +0000 (12:10 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 Feb 2022 09:39:26 +0000 (10:39 +0100)
commitf166d19f9e82431e121213371ce2eec5f8cf39be
treedebddc65013aa53f335434c0ae25277e69cc8efa
parentf52361790aaf58d489952a7641777549979428f4
tty: serial: amba-pl010: use more uart_port pointers

The code uses uart_amba_port::port on many places. Sometimes it even
needs not uart_amba_port itself. So simplify the code on many places
and remove the need of uart_amba_port on some places completely.

No functional changes intended. The objdump -d output shows only a code
move in pl010_rx_chars().

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: Russell King <linux@armlinux.org.uk>
Link: https://lore.kernel.org/r/20220224111028.20917-5-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/amba-pl010.c