aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty
diff options
context:
space:
mode:
authorJiri Slaby <jslaby@suse.cz>2012-03-05 08:52:45 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-03-08 15:50:01 -0500
commit6fe18d26b1c33d5cb748f8694ee1a59dc5578da4 (patch)
tree6b48713ac874c6a3bf394ceb212be58e175c79ee /drivers/tty
parentff169e5cbec29d33765687c7131673316011b328 (diff)
TTY: amiserial no longer needs serialP
amiserial is the last user of serialP.h. Let's move struct serial_state directly to amiserial and remove serialP crap from includes. Finally, remove the header from the tree completely. Signed-off-by: Jiri Slaby <jslaby@suse.cz> Cc: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty')
-rw-r--r--drivers/tty/amiserial.c20
1 files changed, 19 insertions, 1 deletions
diff --git a/drivers/tty/amiserial.c b/drivers/tty/amiserial.c
index b182bccf3eab..613d6a3908d3 100644
--- a/drivers/tty/amiserial.c
+++ b/drivers/tty/amiserial.c
@@ -58,7 +58,6 @@
58 58
59#include <linux/types.h> 59#include <linux/types.h>
60#include <linux/serial.h> 60#include <linux/serial.h>
61#include <linux/serialP.h>
62#include <linux/serial_reg.h> 61#include <linux/serial_reg.h>
63static char *serial_version = "4.30"; 62static char *serial_version = "4.30";
64 63
@@ -70,6 +69,7 @@ static char *serial_version = "4.30";
70#include <linux/interrupt.h> 69#include <linux/interrupt.h>
71#include <linux/tty.h> 70#include <linux/tty.h>
72#include <linux/tty_flip.h> 71#include <linux/tty_flip.h>
72#include <linux/circ_buf.h>
73#include <linux/console.h> 73#include <linux/console.h>
74#include <linux/major.h> 74#include <linux/major.h>
75#include <linux/string.h> 75#include <linux/string.h>
@@ -92,6 +92,24 @@ static char *serial_version = "4.30";
92#include <asm/amigahw.h> 92#include <asm/amigahw.h>
93#include <asm/amigaints.h> 93#include <asm/amigaints.h>
94 94
95struct serial_state {
96 struct tty_port tport;
97 struct circ_buf xmit;
98 struct async_icount icount;
99
100 unsigned long port;
101 int baud_base;
102 int xmit_fifo_size;
103 int custom_divisor;
104 int read_status_mask;
105 int ignore_status_mask;
106 int timeout;
107 int quot;
108 int IER; /* Interrupt Enable Register */
109 int MCR; /* Modem control register */
110 int x_char; /* xon/xoff character */
111};
112
95#define custom amiga_custom 113#define custom amiga_custom
96static char *serial_name = "Amiga-builtin serial driver"; 114static char *serial_name = "Amiga-builtin serial driver";
97 115