]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - include/linux/tty.h
tty: move the non-file related parts of tty_release to new tty_release_struct
authorRob Herring <robh@kernel.org>
Mon, 16 Jan 2017 22:54:28 +0000 (16:54 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jan 2017 13:25:15 +0000 (14:25 +0100)
commit9ed90d20449b01beb71a4e125d291a36c80c4ad4
tree3d242e7d7f46afbf7d5e633beba66b8bf451dbbc
parent2cc32b18d1243d65dc312478be08dd5856b44523
tty: move the non-file related parts of tty_release to new tty_release_struct

For in-kernel tty users, we need to be able to create and destroy
'struct tty' that are not associated with a file. The creation side is
fine, but tty_release() needs to be split into the file handle portion
and the struct tty portion. Introduce a new function, tty_release_struct,
to handle just the destroying of a struct tty.

Signed-off-by: Rob Herring <robh@kernel.org>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-By: Sebastian Reichel <sre@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/tty_io.c
include/linux/tty.h