Skip to content

Commit

Permalink
TTY: amiserial no longer needs serialP
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jiri Slaby authored and Greg Kroah-Hartman committed Mar 8, 2012
1 parent ff169e5 commit 6fe18d2
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 50 deletions.
20 changes: 19 additions & 1 deletion drivers/tty/amiserial.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@

#include <linux/types.h>
#include <linux/serial.h>
#include <linux/serialP.h>
#include <linux/serial_reg.h>
static char *serial_version = "4.30";

Expand All @@ -70,6 +69,7 @@ static char *serial_version = "4.30";
#include <linux/interrupt.h>
#include <linux/tty.h>
#include <linux/tty_flip.h>
#include <linux/circ_buf.h>
#include <linux/console.h>
#include <linux/major.h>
#include <linux/string.h>
Expand All @@ -92,6 +92,24 @@ static char *serial_version = "4.30";
#include <asm/amigahw.h>
#include <asm/amigaints.h>

struct serial_state {
struct tty_port tport;
struct circ_buf xmit;
struct async_icount icount;

unsigned long port;
int baud_base;
int xmit_fifo_size;
int custom_divisor;
int read_status_mask;
int ignore_status_mask;
int timeout;
int quot;
int IER; /* Interrupt Enable Register */
int MCR; /* Modem control register */
int x_char; /* xon/xoff character */
};

#define custom amiga_custom
static char *serial_name = "Amiga-builtin serial driver";

Expand Down
49 changes: 0 additions & 49 deletions include/linux/serialP.h

This file was deleted.

0 comments on commit 6fe18d2

Please sign in to comment.