linux/drivers/staging
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
..
axis-fifo staging: axis-fifo: Remove hardware resets for user errors 2025-04-25 16:14:25 +02:00
fbtft fbtft: Replace 'depends on FB_TFT' by 'if FB_TFT ... endif' 2025-04-15 16:32:35 +02:00
gpib treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
greybus tty: introduce and use tty_port_tty_vhangup() helper 2025-06-17 13:42:33 +02:00
iio IIO: New device support, features and cleanup for 6.16 - take 2 2025-05-22 15:54:52 +02:00
media treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
most staging: most: Remove TODO contact information 2024-11-10 08:03:31 +01:00
nvec staging: Switch back to struct platform_driver::remove() 2024-10-09 11:54:53 +02:00
octeon staging: Switch back to struct platform_driver::remove() 2024-10-09 11:54:53 +02:00
rtl8723bs treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
sm750fb staging: sm750fb: rename hw_sm750le_setBLANK 2025-05-21 13:48:23 +02:00
vc04_services Merge 6.15-rc6 into staging-next 2025-05-13 08:37:56 +02:00
vme_user staging: vme_user: vme_tsi148.c: avoid parenthesis line ending 2024-12-29 11:33:11 +01:00
Kconfig staging: fieldbus: Delete unused driver 2024-11-04 00:53:07 +01:00
Makefile staging: fieldbus: Delete unused driver 2024-11-04 00:53:07 +01:00