]> git.baikalelectronics.ru Git - kernel.git/commit
tty: Add a full port_close function
authorAlan Cox <alan@linux.intel.com>
Sat, 19 Sep 2009 20:13:20 +0000 (13:13 -0700)
committerLive-CD User <linux@linux.site>
Sat, 19 Sep 2009 20:13:20 +0000 (13:13 -0700)
commit279993a689ad69565e3ce86d5b896788e6a25777
tree73cb5a8f36d9999e0c85957cc27e7be2f140a610
parenta84d937d41704339ddd3eabb79eaef56c48acf4e
tty: Add a full port_close function

Now we are extracting out methods for shutdown and the like we can add a
proper tty_port_close method that knows all the innards of the tty closing
process and hides the lot from the caller.

At some point in the future this will be paired with a similar open()
helper and the drivers can stick to hardware management.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/char/tty_port.c
include/linux/tty.h