diff options
author | Alan Cox <alan@redhat.com> | 2008-07-16 16:53:12 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-20 20:12:34 -0400 |
commit | a352def21a642133758b868c71bee12ab34ad5c5 (patch) | |
tree | 95d0f7229f9e4afccdc6fbbf11f7f5c6dd83b0fd /drivers/bluetooth | |
parent | e1e5770bb63fb9d71619a68f52cb0ba4b2ae58a6 (diff) |
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 <alan@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/bluetooth')
-rw-r--r-- | drivers/bluetooth/hci_ldisc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/bluetooth/hci_ldisc.c b/drivers/bluetooth/hci_ldisc.c index e5cd856a2fea..69df187d74ce 100644 --- a/drivers/bluetooth/hci_ldisc.c +++ b/drivers/bluetooth/hci_ldisc.c | |||
@@ -282,8 +282,8 @@ static int hci_uart_tty_open(struct tty_struct *tty) | |||
282 | /* FIXME: why is this needed. Note don't use ldisc_ref here as the | 282 | /* FIXME: why is this needed. Note don't use ldisc_ref here as the |
283 | open path is before the ldisc is referencable */ | 283 | open path is before the ldisc is referencable */ |
284 | 284 | ||
285 | if (tty->ldisc.flush_buffer) | 285 | if (tty->ldisc.ops->flush_buffer) |
286 | tty->ldisc.flush_buffer(tty); | 286 | tty->ldisc.ops->flush_buffer(tty); |
287 | tty_driver_flush_buffer(tty); | 287 | tty_driver_flush_buffer(tty); |
288 | 288 | ||
289 | return 0; | 289 | return 0; |
@@ -514,7 +514,7 @@ static unsigned int hci_uart_tty_poll(struct tty_struct *tty, | |||
514 | 514 | ||
515 | static int __init hci_uart_init(void) | 515 | static int __init hci_uart_init(void) |
516 | { | 516 | { |
517 | static struct tty_ldisc hci_uart_ldisc; | 517 | static struct tty_ldisc_ops hci_uart_ldisc; |
518 | int err; | 518 | int err; |
519 | 519 | ||
520 | BT_INFO("HCI UART driver ver %s", VERSION); | 520 | BT_INFO("HCI UART driver ver %s", VERSION); |