Commit 852e99d2 authored by Alan Cox's avatar Alan Cox Committed by Linus Torvalds

tty: bring ldisc into CodingStyle

Signed-off-by: default avatarAlan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent f2c4c65c
...@@ -208,12 +208,12 @@ static void tty_ldisc_put(struct tty_ldisc *ld) ...@@ -208,12 +208,12 @@ static void tty_ldisc_put(struct tty_ldisc *ld)
kfree(ld); kfree(ld);
} }
static void * tty_ldiscs_seq_start(struct seq_file *m, loff_t *pos) static void *tty_ldiscs_seq_start(struct seq_file *m, loff_t *pos)
{ {
return (*pos < NR_LDISCS) ? pos : NULL; return (*pos < NR_LDISCS) ? pos : NULL;
} }
static void * tty_ldiscs_seq_next(struct seq_file *m, void *v, loff_t *pos) static void *tty_ldiscs_seq_next(struct seq_file *m, void *v, loff_t *pos)
{ {
(*pos)++; (*pos)++;
return (*pos < NR_LDISCS) ? pos : NULL; return (*pos < NR_LDISCS) ? pos : NULL;
...@@ -325,7 +325,6 @@ struct tty_ldisc *tty_ldisc_ref_wait(struct tty_struct *tty) ...@@ -325,7 +325,6 @@ struct tty_ldisc *tty_ldisc_ref_wait(struct tty_struct *tty)
WARN_ON(tty->ldisc->refcount == 0); WARN_ON(tty->ldisc->refcount == 0);
return tty->ldisc; return tty->ldisc;
} }
EXPORT_SYMBOL_GPL(tty_ldisc_ref_wait); EXPORT_SYMBOL_GPL(tty_ldisc_ref_wait);
/** /**
...@@ -345,7 +344,6 @@ struct tty_ldisc *tty_ldisc_ref(struct tty_struct *tty) ...@@ -345,7 +344,6 @@ struct tty_ldisc *tty_ldisc_ref(struct tty_struct *tty)
return tty->ldisc; return tty->ldisc;
return NULL; return NULL;
} }
EXPORT_SYMBOL_GPL(tty_ldisc_ref); EXPORT_SYMBOL_GPL(tty_ldisc_ref);
/** /**
...@@ -373,7 +371,6 @@ void tty_ldisc_deref(struct tty_ldisc *ld) ...@@ -373,7 +371,6 @@ void tty_ldisc_deref(struct tty_ldisc *ld)
wake_up(&tty_ldisc_wait); wake_up(&tty_ldisc_wait);
spin_unlock_irqrestore(&tty_ldisc_lock, flags); spin_unlock_irqrestore(&tty_ldisc_lock, flags);
} }
EXPORT_SYMBOL_GPL(tty_ldisc_deref); EXPORT_SYMBOL_GPL(tty_ldisc_deref);
/** /**
...@@ -413,7 +410,6 @@ void tty_ldisc_flush(struct tty_struct *tty) ...@@ -413,7 +410,6 @@ void tty_ldisc_flush(struct tty_struct *tty)
} }
tty_buffer_flush(tty); tty_buffer_flush(tty);
} }
EXPORT_SYMBOL_GPL(tty_ldisc_flush); EXPORT_SYMBOL_GPL(tty_ldisc_flush);
/** /**
...@@ -492,7 +488,7 @@ static void tty_ldisc_restore(struct tty_struct *tty, struct tty_ldisc *old) ...@@ -492,7 +488,7 @@ static void tty_ldisc_restore(struct tty_struct *tty, struct tty_ldisc *old)
if (tty_ldisc_open(tty, old) < 0) { if (tty_ldisc_open(tty, old) < 0) {
tty_ldisc_put(old); tty_ldisc_put(old);
/* This driver is always present */ /* This driver is always present */
new_ldisc =tty_ldisc_get(N_TTY); new_ldisc = tty_ldisc_get(N_TTY);
if (IS_ERR(new_ldisc)) if (IS_ERR(new_ldisc))
panic("n_tty: get"); panic("n_tty: get");
tty_ldisc_assign(tty, new_ldisc); tty_ldisc_assign(tty, new_ldisc);
...@@ -841,8 +837,8 @@ int tty_ldisc_setup(struct tty_struct *tty, struct tty_struct *o_tty) ...@@ -841,8 +837,8 @@ int tty_ldisc_setup(struct tty_struct *tty, struct tty_struct *o_tty)
* @tty: tty being shut down * @tty: tty being shut down
* @o_tty: pair tty for pty/tty pairs * @o_tty: pair tty for pty/tty pairs
* *
* Called during the final close of a tty/pty pair in order to shut down the * Called during the final close of a tty/pty pair in order to shut down
* line discpline layer. On exit the ldisc assigned is N_TTY and the * the line discpline layer. On exit the ldisc assigned is N_TTY and the
* ldisc has not been opened. * ldisc has not been opened.
*/ */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment