summaryrefslogtreecommitdiffstats
path: root/arch/ia64/hp
diff options
context:
space:
mode:
authorJiri Slaby <jslaby@suse.cz>2012-03-05 14:52:31 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-03-08 21:48:27 +0100
commit3c4782dcd9b8d02e79f0f0bd1fe6e30a79790526 (patch)
tree37ddd0011b1a8ffa8e656fe23f6745c80f23b73b /arch/ia64/hp
parentTTY: simserial, stop using serial_state->{line,icount} (diff)
downloadlinux-3c4782dcd9b8d02e79f0f0bd1fe6e30a79790526.tar.xz
linux-3c4782dcd9b8d02e79f0f0bd1fe6e30a79790526.zip
TTY: simserial no longer needs serialP
Let's do a spin-off of serial_state structure with only needed elements. And remove serialP crap from includes. Signed-off-by: Jiri Slaby <jslaby@suse.cz> 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 'arch/ia64/hp')
-rw-r--r--arch/ia64/hp/sim/simserial.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/arch/ia64/hp/sim/simserial.c b/arch/ia64/hp/sim/simserial.c
index 3698a2fe221d..120aad4d5362 100644
--- a/arch/ia64/hp/sim/simserial.c
+++ b/arch/ia64/hp/sim/simserial.c
@@ -27,10 +27,10 @@
#include <linux/seq_file.h>
#include <linux/slab.h>
#include <linux/capability.h>
+#include <linux/circ_buf.h>
#include <linux/console.h>
#include <linux/module.h>
#include <linux/serial.h>
-#include <linux/serialP.h>
#include <linux/sysrq.h>
#include <asm/irq.h>
@@ -46,6 +46,13 @@
#define NR_PORTS 1 /* only one port for now */
+struct serial_state {
+ struct tty_port tport;
+ struct circ_buf xmit;
+ int irq;
+ int x_char;
+};
+
static char *serial_name = "SimSerial driver";
static char *serial_version = "0.6";