linux-loongson/drivers/isdn/capi
Jiri Slaby (SUSE) 2b5eac0f8c tty: introduce and use tty_port_tty_vhangup() helper
This code (tty_get -> vhangup -> tty_put) is repeated on few places.
Introduce a helper similar to tty_port_tty_hangup() (asynchronous) to
handle even vhangup (synchronous).

And use it on those places.

In fact, reuse the tty_port_tty_hangup()'s code and call tty_vhangup()
depending on a new bool parameter.

Signed-off-by: "Jiri Slaby (SUSE)" <jirislaby@kernel.org>
Cc: Karsten Keil <isdn@linux-pingi.de>
Cc: David Lin <dtwlin@gmail.com>
Cc: Johan Hovold <johan@kernel.org>
Cc: Alex Elder <elder@kernel.org>
Cc: Oliver Neukum <oneukum@suse.com>
Cc: Marcel Holtmann <marcel@holtmann.org>
Cc: Johan Hedberg <johan.hedberg@gmail.com>
Cc: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20250611100319.186924-2-jirislaby@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-06-17 13:42:33 +02:00
..
capi.c tty: introduce and use tty_port_tty_vhangup() helper 2025-06-17 13:42:33 +02:00
capiutil.c isystem: ship and use stdarg.h 2021-08-19 09:02:55 +09:00
kcapi_proc.c proc: mandate ->proc_lseek in "struct proc_ops" 2021-05-06 19:24:11 -07:00
kcapi.c isdn: kcapi: don't build unused procfs code 2024-04-05 22:11:28 -07:00
kcapi.h isdn: capi: dead code removal 2019-12-11 09:12:38 +01:00
Kconfig isdn/capi: Replace HTTP links with HTTPS ones 2020-07-13 17:25:35 -07:00
Makefile isdn: kcapi: don't build unused procfs code 2024-04-05 22:11:28 -07:00