]> git.karo-electronics.de Git - karo-tx-linux.git/commit
PTY: merge pty_install implementations
authorJiri Slaby <jslaby@suse.cz>
Mon, 4 Jun 2012 11:35:29 +0000 (13:35 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 14 Jun 2012 00:30:14 +0000 (17:30 -0700)
commit5d249bc6a61e7a434c69e0d0becc77a803c8c5e8
tree2491990795432373827e7a7f7280e31e3f10ef9c
parent7171604ae7b3bbc738b6a4b7cd0ee73eb0d551d9
PTY: merge pty_install implementations

There are currently two instances of code which handles PTY install.
One for the legacy BSD PTY's, one for unix98's PTY's. Both of them are
very similar and differ only in termios allocation and handling.

Since we will need to allocate a tty_port at that place, this would
require editing two places with the same pattern. Instead, let us move
the implementation to one common place and call it from both places.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/pty.c