diff options
author | Jiri Slaby <jslaby@suse.cz> | 2012-03-05 08:52:55 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-03-08 15:51:13 -0500 |
commit | 48a7466f4dd0104d87a6d8dd0f25027be89c8453 (patch) | |
tree | aef96c8570d2dce03f120205103073d4282f1a5b /drivers/isdn/gigaset/gigaset.h | |
parent | fc258f89405f63b379324d1f8388ae4810297997 (diff) |
TTY: isdn/gigaset, use tty_port
Let us port the code to use tty_port. We now use open_count and tty
from there. This allows us also to use tty_port_tty_set with tty
refcounting instead of hand-written locking and logic.
Note that tty and open_count are no longer protected by cs->lock. It is
protected by tty_port->lock. But since all the places where they were
used are now switched to the helpers, we are fine.
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: Hansjoerg Lipp <hjlipp@web.de>
Acked-by: Tilman Schmidt <tilman@imap.cc>
Cc: <gigaset307x-common@lists.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/isdn/gigaset/gigaset.h')
-rw-r--r-- | drivers/isdn/gigaset/gigaset.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/isdn/gigaset/gigaset.h b/drivers/isdn/gigaset/gigaset.h index 212efaf9a4e4..f877726d664b 100644 --- a/drivers/isdn/gigaset/gigaset.h +++ b/drivers/isdn/gigaset/gigaset.h | |||
@@ -433,8 +433,7 @@ struct cardstate { | |||
433 | spinlock_t cmdlock; | 433 | spinlock_t cmdlock; |
434 | unsigned curlen, cmdbytes; | 434 | unsigned curlen, cmdbytes; |
435 | 435 | ||
436 | unsigned open_count; | 436 | struct tty_port port; |
437 | struct tty_struct *tty; | ||
438 | struct tasklet_struct if_wake_tasklet; | 437 | struct tasklet_struct if_wake_tasklet; |
439 | unsigned control_state; | 438 | unsigned control_state; |
440 | 439 | ||