]> git.karo-electronics.de Git - karo-tx-linux.git/commit
TTY: devpts, do not set driver_data
authorJiri Slaby <jslaby@suse.cz>
Thu, 18 Oct 2012 20:26:29 +0000 (22:26 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 22 Oct 2012 23:50:13 +0000 (16:50 -0700)
commitf11afb61247016162aa92225a337c1575556c9d9
treeba77670c1ac540bb284e6975d6996b21ad23a272
parent162b97cfa21f816f39ede1944f2a4220e3cf8969
TTY: devpts, do not set driver_data

The goal is to stop setting and using tty->driver_data in devpts code.
It should be used solely by the driver's code, pty in this case.

Now driver_data are managed only in the pty driver. devpts_pty_new is
switched to accept what we used to dig out of tty_struct, i.e. device
node number and index.

This also removes a note about driver_data being set outside of the
driver.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Acked-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/pty.c
fs/devpts/inode.c
include/linux/devpts_fs.h