diff options
author | Jiri Slaby <jslaby@suse.cz> | 2012-03-05 08:52:16 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-03-08 15:27:17 -0500 |
commit | d852256389f1bcf506710ea5de77debde40013b9 (patch) | |
tree | 63235762da2d6ad860a8a281118cd53ced34736f /include/linux/serialP.h | |
parent | 979b6d89766ed573bca6a6e902193c4cad502909 (diff) |
TTY: simserial/amiserial, use one instance of other members
This means:
* close_delay
* closing_wait
* line
* port
* xmit_fifo_size
This actually fixes a bug in amiserial. It initializes one and uses
the other of the close delays. Yes, duplicating structure members is
evil.
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Tony Luck <tony.luck@intel.com>
Cc: Fenghua Yu <fenghua.yu@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/serialP.h')
-rw-r--r-- | include/linux/serialP.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/include/linux/serialP.h b/include/linux/serialP.h index 6741f57cc2ae..6ce488c46589 100644 --- a/include/linux/serialP.h +++ b/include/linux/serialP.h | |||
@@ -42,8 +42,6 @@ struct serial_state { | |||
42 | }; | 42 | }; |
43 | 43 | ||
44 | struct async_struct { | 44 | struct async_struct { |
45 | unsigned long port; | ||
46 | int xmit_fifo_size; | ||
47 | struct serial_state *state; | 45 | struct serial_state *state; |
48 | struct tty_struct *tty; | 46 | struct tty_struct *tty; |
49 | int read_status_mask; | 47 | int read_status_mask; |
@@ -51,11 +49,8 @@ struct async_struct { | |||
51 | int timeout; | 49 | int timeout; |
52 | int quot; | 50 | int quot; |
53 | int x_char; /* xon/xoff character */ | 51 | int x_char; /* xon/xoff character */ |
54 | int close_delay; | ||
55 | unsigned short closing_wait; | ||
56 | int IER; /* Interrupt Enable Register */ | 52 | int IER; /* Interrupt Enable Register */ |
57 | int MCR; /* Modem control register */ | 53 | int MCR; /* Modem control register */ |
58 | int line; | ||
59 | int blocked_open; /* # of blocked opens */ | 54 | int blocked_open; /* # of blocked opens */ |
60 | struct circ_buf xmit; | 55 | struct circ_buf xmit; |
61 | wait_queue_head_t open_wait; | 56 | wait_queue_head_t open_wait; |