tty: pty - Move TIOCPKT handling into pty.c
authorCyrill Gorcunov <gorcunov@openvz.org>
Wed, 24 Oct 2012 19:43:20 +0000 (23:43 +0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Oct 2012 19:07:18 +0000 (12:07 -0700)
commit06026d911c31dfa602e14e635a3489b8d67cc786
tree9e8ef5fcc3be08dc92ca955be8fd8ec8ddd18736
parentab72fa5523866cb93681abb9f9a401d43a93b7be
tty: pty - Move TIOCPKT handling into pty.c

Since this ioctl is for pty devices only move it to pty.c.

v2:
 - drop PTY_TYPE_MASTER test since it's master peer
   ioctl anyway (by jslaby@)

Suggested-by: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
CC: "H. Peter Anvin" <hpa@zytor.com>
CC: Pavel Emelyanov <xemul@parallels.com>
CC: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/pty.c
drivers/tty/tty_ioctl.c