]> git.baikalelectronics.ru Git - kernel.git/commit
tty: serial: altera_uart_{r,t}x_chars() need only uart_port
authorJiri Slaby <jslaby@suse.cz>
Tue, 20 Sep 2022 05:20:43 +0000 (07:20 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Jan 2023 10:41:23 +0000 (11:41 +0100)
commitd19230468ce823e28cda7e1ac9655e83e5eaf20b
tree7b34eb318f618c150c549c4feb2472c627547a74
parent337163ef92d61610fb88e72b85cfc4ae37a1be2f
tty: serial: altera_uart_{r,t}x_chars() need only uart_port

[ Upstream commit 49864054a49d4fb1468760226b9ae35f2c76464b ]

Both altera_uart_{r,t}x_chars() need only uart_port, not altera_uart. So
pass the former from altera_uart_interrupt() directly.

Apart it maybe saves a dereference, this makes the transition of
altera_uart_tx_chars() easier to follow in the next patch.

Cc: Tobias Klauser <tklauser@distanz.ch>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Acked-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20220920052049.20507-4-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Stable-dep-of: 1307c5d33cce ("serial: altera_uart: fix locking in polling mode")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/tty/serial/altera_uart.c