]> git.baikalelectronics.ru Git - kernel.git/commit
misc: pti, use tty_port_register_device
authorJiri Slaby <jslaby@suse.cz>
Tue, 7 Aug 2012 19:47:36 +0000 (21:47 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Aug 2012 20:29:57 +0000 (13:29 -0700)
commit2e13fd840ef1ff4b839f238f334abda92094cc77
tree8c41dd851e0e974f1a2948a7866e8f6d041cdc70
parentf73a83410df1fa04ffa45b44053f39bc7a3e632e
misc: pti, use tty_port_register_device

So now we have enough of tty_ports, so we can signal the TTY layer to
use them by tty_port_register_device.

The upside is that we look like we can introduce tty_port_easy_open
and put it directly as tty_operations->open to drivers doing nothing
in open and using tty_port_register_device. Because the easy open can
obtain a tty_port rather easily from a tty now. Heh, what a nice
by-product.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: J Freyensee <james_p_freyensee@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/pti.c