aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/hayesesp.h
diff options
context:
space:
mode:
authorAlan Cox <alan@redhat.com>2008-07-16 21:55:11 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2008-07-20 17:12:36 -0700
commit4982d6b37a5ccebe6c2af79970c7a15c1939243a (patch)
treee1d0a1c2f3d57943c5d3e25ed1921c8062431667 /include/linux/hayesesp.h
parent52d417388d154f68f8ab753de03b1fba1814de81 (diff)
downloadkernel_samsung_aries-4982d6b37a5ccebe6c2af79970c7a15c1939243a.zip
kernel_samsung_aries-4982d6b37a5ccebe6c2af79970c7a15c1939243a.tar.gz
kernel_samsung_aries-4982d6b37a5ccebe6c2af79970c7a15c1939243a.tar.bz2
esp: use tty_port
Switch esp to use the new tty_port structures Signed-off-by: Alan Cox <alan@redhat.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/hayesesp.h')
-rw-r--r--include/linux/hayesesp.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/include/linux/hayesesp.h b/include/linux/hayesesp.h
index 2177ee5..940aeb5 100644
--- a/include/linux/hayesesp.h
+++ b/include/linux/hayesesp.h
@@ -76,11 +76,10 @@ struct hayes_esp_config {
struct esp_struct {
int magic;
+ struct tty_port port;
spinlock_t lock;
- int port;
+ int io_port;
int irq;
- int flags; /* defined in tty.h */
- struct tty_struct *tty;
int read_status_mask;
int ignore_status_mask;
int timeout;
@@ -93,14 +92,10 @@ struct esp_struct {
int MCR; /* Modem control register */
unsigned long last_active;
int line;
- int count; /* # of fd on device */
- int blocked_open; /* # of blocked opens */
unsigned char *xmit_buf;
int xmit_head;
int xmit_tail;
int xmit_cnt;
- wait_queue_head_t open_wait;
- wait_queue_head_t close_wait;
wait_queue_head_t delta_msr_wait;
wait_queue_head_t break_wait;
struct async_icount icount; /* kernel counters for the 4 input interrupts */