mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
tty: Ldisc revamp
Move the line disciplines towards a conventional ->ops arrangement. For the moment the actual 'tty_ldisc' struct in the tty is kept as part of the tty struct but this can then be changed if it turns out that when it all settles down we want to refcount ldiscs separately to the tty. Pull the ldisc code out of /proc and put it with our ldisc code. Signed-off-by: Alan Cox <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
e1e5770bb6
commit
a352def21a
32 changed files with 286 additions and 246 deletions
|
|
@ -216,7 +216,7 @@ static void serport_ldisc_write_wakeup(struct tty_struct * tty)
|
|||
* The line discipline structure.
|
||||
*/
|
||||
|
||||
static struct tty_ldisc serport_ldisc = {
|
||||
static struct tty_ldisc_ops serport_ldisc = {
|
||||
.owner = THIS_MODULE,
|
||||
.name = "input",
|
||||
.open = serport_ldisc_open,
|
||||
|
|
|
|||
Loading…
Reference in a new issue