tty: sparc: rename drivers/tty/serial/suncore.h -> include/linux/sunserialcore.h
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Thu, 9 Feb 2012 23:48:19 +0000 (18:48 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Feb 2012 18:44:35 +0000 (10:44 -0800)
There are multiple users of this file from different source
paths now, and rather than have ../ paths in include statements,
just move the file to the linux header dir.

Suggested-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
MAINTAINERS
drivers/tty/serial/8250/8250.c
drivers/tty/serial/suncore.c
drivers/tty/serial/suncore.h [deleted file]
drivers/tty/serial/sunhv.c
drivers/tty/serial/sunsab.c
drivers/tty/serial/sunsu.c
drivers/tty/serial/sunzilog.c
include/linux/sunserialcore.h [new file with mode: 0644]

index 9a648eb8e2130fa6b2fb5b3362c8fb106b00e6ba..27c052cc8835b68cee50ed081080522076acee91 100644 (file)
@@ -6187,8 +6187,8 @@ L:        sparclinux@vger.kernel.org
 T:     git git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc-2.6.git
 T:     git git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc-next-2.6.git
 S:     Maintained
+F:     include/linux/sunserialcore.h
 F:     drivers/tty/serial/suncore.c
-F:     drivers/tty/serial/suncore.h
 F:     drivers/tty/serial/sunhv.c
 F:     drivers/tty/serial/sunsab.c
 F:     drivers/tty/serial/sunsab.h
index b423d0f962a225e6d93c8bc5fda3cf77c3ea917a..917ab8452746c9a3476530e62aefa2c2b5726cc2 100644 (file)
 #include <linux/nmi.h>
 #include <linux/mutex.h>
 #include <linux/slab.h>
+#ifdef CONFIG_SPARC
+#include <linux/sunserialcore.h>
+#endif
 
 #include <asm/io.h>
 #include <asm/irq.h>
 
 #include "8250.h"
 
-#ifdef CONFIG_SPARC
-#include "../suncore.h"
-#endif
-
 /*
  * Configuration:
  *   share_irqs - whether we pass IRQF_SHARED to request_irq().  This option
index 6381a0282ee79ab3f43e464f19a48a0880faa4bc..6e4ac8db2d79169da320cc028a47423628b51f0f 100644 (file)
 #include <linux/errno.h>
 #include <linux/string.h>
 #include <linux/serial_core.h>
+#include <linux/sunserialcore.h>
 #include <linux/init.h>
 
 #include <asm/prom.h>
 
-#include "suncore.h"
 
 static int sunserial_current_minor = 64;
 
diff --git a/drivers/tty/serial/suncore.h b/drivers/tty/serial/suncore.h
deleted file mode 100644 (file)
index db20579..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-/* suncore.h
- *
- * Generic SUN serial/kbd/ms layer.  Based entirely
- * upon drivers/sbus/char/sunserial.h which is:
- *
- * Copyright (C) 1997  Eddie C. Dost  (ecd@skynet.be)
- *
- * Port to new UART layer is:
- *
- * Copyright (C) 2002 David S. Miller (davem@redhat.com)
- */
-
-#ifndef _SERIAL_SUN_H
-#define _SERIAL_SUN_H
-
-/* Serial keyboard defines for L1-A processing... */
-#define SUNKBD_RESET           0xff
-#define SUNKBD_L1              0x01
-#define SUNKBD_UP              0x80
-#define SUNKBD_A               0x4d
-
-extern unsigned int suncore_mouse_baud_cflag_next(unsigned int, int *);
-extern int suncore_mouse_baud_detection(unsigned char, int);
-
-extern int sunserial_register_minors(struct uart_driver *, int);
-extern void sunserial_unregister_minors(struct uart_driver *, int);
-
-extern int sunserial_console_match(struct console *, struct device_node *,
-                                  struct uart_driver *, int, bool);
-extern void sunserial_console_termios(struct console *,
-                                     struct device_node *);
-
-#endif /* !(_SERIAL_SUN_H) */
index c0b7246d733902c221bf540c9b77f3bdfcf211ec..3ba5d285c2d0ae805fc99deb30c48ccbbb6ae405 100644 (file)
@@ -29,8 +29,7 @@
 #endif
 
 #include <linux/serial_core.h>
-
-#include "suncore.h"
+#include <linux/sunserialcore.h>
 
 #define CON_BREAK      ((long)-1)
 #define CON_HUP                ((long)-2)
index b5fa2a57b9da7ba1060194f356efb9756d5d3403..62dacd0ba5266f49d71381db97708ebdcc1585e7 100644 (file)
@@ -43,8 +43,8 @@
 #endif
 
 #include <linux/serial_core.h>
+#include <linux/sunserialcore.h>
 
-#include "suncore.h"
 #include "sunsab.h"
 
 struct uart_sunsab_port {
index ad0f8f5f6ea189e1ba4e389a8626c2e1231a6033..d3ca6da129fe1740a070923baf06af5fd8e6effd 100644 (file)
@@ -47,8 +47,7 @@
 #endif
 
 #include <linux/serial_core.h>
-
-#include "suncore.h"
+#include <linux/sunserialcore.h>
 
 /* We are on a NS PC87303 clocked with 24.0 MHz, which results
  * in a UART clock of 1.8462 MHz.
index 5a47d1b196d847dd08b63c65c8927d288a5e0e28..da4415842a43f3fa472a55a5e9927b0a5666eae8 100644 (file)
@@ -43,8 +43,8 @@
 #endif
 
 #include <linux/serial_core.h>
+#include <linux/sunserialcore.h>
 
-#include "suncore.h"
 #include "sunzilog.h"
 
 /* On 32-bit sparcs we need to delay after register accesses
diff --git a/include/linux/sunserialcore.h b/include/linux/sunserialcore.h
new file mode 100644 (file)
index 0000000..68e7430
--- /dev/null
@@ -0,0 +1,33 @@
+/* sunserialcore.h
+ *
+ * Generic SUN serial/kbd/ms layer.  Based entirely
+ * upon drivers/sbus/char/sunserial.h which is:
+ *
+ * Copyright (C) 1997  Eddie C. Dost  (ecd@skynet.be)
+ *
+ * Port to new UART layer is:
+ *
+ * Copyright (C) 2002 David S. Miller (davem@redhat.com)
+ */
+
+#ifndef _SERIAL_SUN_H
+#define _SERIAL_SUN_H
+
+/* Serial keyboard defines for L1-A processing... */
+#define SUNKBD_RESET           0xff
+#define SUNKBD_L1              0x01
+#define SUNKBD_UP              0x80
+#define SUNKBD_A               0x4d
+
+extern unsigned int suncore_mouse_baud_cflag_next(unsigned int, int *);
+extern int suncore_mouse_baud_detection(unsigned char, int);
+
+extern int sunserial_register_minors(struct uart_driver *, int);
+extern void sunserial_unregister_minors(struct uart_driver *, int);
+
+extern int sunserial_console_match(struct console *, struct device_node *,
+                                  struct uart_driver *, int, bool);
+extern void sunserial_console_termios(struct console *,
+                                     struct device_node *);
+
+#endif /* !(_SERIAL_SUN_H) */