aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJiri Slaby <jslaby@suse.cz>2012-03-05 08:52:20 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-03-08 15:28:48 -0500
commit916b765675b7044bd5895b7430a2aa2c63ea4545 (patch)
tree55a876c662dc2efa4990984de7f3286cc3371b63 /include
parent13c9062122a8d05e0881ca8bd9037d2e57e56860 (diff)
TTY: serialP, merge serial_state and async_struct
This is the final step to get rid of the one of the structures. A further cleanup will follow. And I struct serial_state deserves cease to exist after a switch to tty_port too. While changing the lines, it removes also pointless tty->driver_data casts. 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')
-rw-r--r--include/linux/serialP.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/include/linux/serialP.h b/include/linux/serialP.h
index b8543f90245..984f5ba8da4 100644
--- a/include/linux/serialP.h
+++ b/include/linux/serialP.h
@@ -38,24 +38,24 @@ struct serial_state {
38 unsigned short close_delay; 38 unsigned short close_delay;
39 unsigned short closing_wait; /* time to wait before closing */ 39 unsigned short closing_wait; /* time to wait before closing */
40 struct async_icount icount; 40 struct async_icount icount;
41 struct async_struct *info;
42};
43 41
44struct async_struct { 42 /* amiserial */
45 struct serial_state *state;
46 struct tty_struct *tty;
47 int read_status_mask; 43 int read_status_mask;
48 int ignore_status_mask; 44 int ignore_status_mask;
49 int timeout; 45 int timeout;
50 int quot; 46 int quot;
51 int x_char; /* xon/xoff character */
52 int IER; /* Interrupt Enable Register */ 47 int IER; /* Interrupt Enable Register */
53 int MCR; /* Modem control register */ 48 int MCR; /* Modem control register */
49 wait_queue_head_t delta_msr_wait;
50 /* simserial */
51 int x_char; /* xon/xoff character */
54 int blocked_open; /* # of blocked opens */ 52 int blocked_open; /* # of blocked opens */
55 struct circ_buf xmit; 53 struct circ_buf xmit;
56 wait_queue_head_t open_wait; 54 wait_queue_head_t open_wait;
57 wait_queue_head_t close_wait; 55 wait_queue_head_t close_wait;
58 wait_queue_head_t delta_msr_wait; 56 struct tty_struct *tty;
57 /* /simserial */
58 /* /amiserial */
59}; 59};
60 60
61#endif /* _LINUX_SERIAL_H */ 61#endif /* _LINUX_SERIAL_H */