serial: sccnxp: Rename header file to match functionality
authorAlexander Shiyan <shc_work@mail.ru>
Mon, 3 Dec 2012 18:23:32 +0000 (22:23 +0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Jan 2013 07:00:38 +0000 (23:00 -0800)
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/mips/sni/a20r.c
drivers/tty/serial/sccnxp.c
include/linux/platform_data/sccnxp.h [deleted file]
include/linux/platform_data/serial-sccnxp.h [new file with mode: 0644]

index 9cb9d43a3a0e6341809f79825ce229423c7acf0d..e05ad4da44d944a31fa09dc70c587cbe1890828d 100644 (file)
@@ -118,7 +118,7 @@ static struct resource sc26xx_rsrc[] = {
        }
 };
 
-#include <linux/platform_data/sccnxp.h>
+#include <linux/platform_data/serial-sccnxp.h>
 
 static struct sccnxp_pdata sccnxp_data = {
        .reg_shift      = 2,
index 3a4c57e6ea1e502e8bb538b9dd464e746c6e6cc5..c864353352c5bf9a4f96985428d9ead6764c1a62 100644 (file)
@@ -25,7 +25,7 @@
 #include <linux/tty_flip.h>
 #include <linux/spinlock.h>
 #include <linux/platform_device.h>
-#include <linux/platform_data/sccnxp.h>
+#include <linux/platform_data/serial-sccnxp.h>
 
 #define SCCNXP_NAME                    "uart-sccnxp"
 #define SCCNXP_MAJOR                   204
diff --git a/include/linux/platform_data/sccnxp.h b/include/linux/platform_data/sccnxp.h
deleted file mode 100644 (file)
index 096de90..0000000
+++ /dev/null
@@ -1,95 +0,0 @@
-/*
- *  NXP (Philips) SCC+++(SCN+++) serial driver
- *
- *  Copyright (C) 2012 Alexander Shiyan <shc_work@mail.ru>
- *
- *  Based on sc26xx.c, by Thomas Bogendörfer (tsbogend@alpha.franken.de)
- *
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 of the License, or
- *  (at your option) any later version.
- */
-
-#ifndef __SCCNXP_H
-#define __SCCNXP_H
-
-#define SCCNXP_MAX_UARTS       2
-
-/* Output lines */
-#define LINE_OP0               1
-#define LINE_OP1               2
-#define LINE_OP2               3
-#define LINE_OP3               4
-#define LINE_OP4               5
-#define LINE_OP5               6
-#define LINE_OP6               7
-#define LINE_OP7               8
-
-/* Input lines */
-#define LINE_IP0               9
-#define LINE_IP1               10
-#define LINE_IP2               11
-#define LINE_IP3               12
-#define LINE_IP4               13
-#define LINE_IP5               14
-#define LINE_IP6               15
-
-/* Signals */
-#define DTR_OP                 0       /* DTR */
-#define RTS_OP                 4       /* RTS */
-#define DSR_IP                 8       /* DSR */
-#define CTS_IP                 12      /* CTS */
-#define DCD_IP                 16      /* DCD */
-#define RNG_IP                 20      /* RNG */
-
-#define DIR_OP                 24      /* Special signal for control RS-485.
-                                        * Goes high when transmit,
-                                        * then goes low.
-                                        */
-
-/* Routing control signal 'sig' to line 'line' */
-#define MCTRL_SIG(sig, line)   ((line) << (sig))
-
-/*
- * Example board initialization data:
- *
- * static struct resource sc2892_resources[] = {
- *     DEFINE_RES_MEM(UART_PHYS_START, 0x10),
- *     DEFINE_RES_IRQ(IRQ_EXT2),
- * };
- *
- * static struct sccnxp_pdata sc2892_info = {
- *     .frequency      = 3686400,
- *     .mctrl_cfg[0]   = MCTRL_SIG(DIR_OP, LINE_OP0),
- *     .mctrl_cfg[1]   = MCTRL_SIG(DIR_OP, LINE_OP1),
- * };
- *
- * static struct platform_device sc2892 = {
- *     .name           = "sc2892",
- *     .id             = -1,
- *     .resource       = sc2892_resources,
- *     .num_resources  = ARRAY_SIZE(sc2892_resources),
- *     .dev = {
- *             .platform_data  = &sc2892_info,
- *     },
- * };
- */
-
-/* SCCNXP platform data structure */
-struct sccnxp_pdata {
-       /* Frequency (extrenal clock or crystal) */
-       int                     frequency;
-       /* Shift for A0 line */
-       const u8                reg_shift;
-       /* Modem control lines configuration */
-       const u32               mctrl_cfg[SCCNXP_MAX_UARTS];
-       /* Timer value for polling mode (usecs) */
-       const unsigned int      poll_time_us;
-       /* Called during startup */
-       void (*init)(void);
-       /* Called before finish */
-       void (*exit)(void);
-};
-
-#endif
diff --git a/include/linux/platform_data/serial-sccnxp.h b/include/linux/platform_data/serial-sccnxp.h
new file mode 100644 (file)
index 0000000..215574d
--- /dev/null
@@ -0,0 +1,95 @@
+/*
+ *  NXP (Philips) SCC+++(SCN+++) serial driver
+ *
+ *  Copyright (C) 2012 Alexander Shiyan <shc_work@mail.ru>
+ *
+ *  Based on sc26xx.c, by Thomas Bogendörfer (tsbogend@alpha.franken.de)
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; either version 2 of the License, or
+ *  (at your option) any later version.
+ */
+
+#ifndef _PLATFORM_DATA_SERIAL_SCCNXP_H_
+#define _PLATFORM_DATA_SERIAL_SCCNXP_H_
+
+#define SCCNXP_MAX_UARTS       2
+
+/* Output lines */
+#define LINE_OP0               1
+#define LINE_OP1               2
+#define LINE_OP2               3
+#define LINE_OP3               4
+#define LINE_OP4               5
+#define LINE_OP5               6
+#define LINE_OP6               7
+#define LINE_OP7               8
+
+/* Input lines */
+#define LINE_IP0               9
+#define LINE_IP1               10
+#define LINE_IP2               11
+#define LINE_IP3               12
+#define LINE_IP4               13
+#define LINE_IP5               14
+#define LINE_IP6               15
+
+/* Signals */
+#define DTR_OP                 0       /* DTR */
+#define RTS_OP                 4       /* RTS */
+#define DSR_IP                 8       /* DSR */
+#define CTS_IP                 12      /* CTS */
+#define DCD_IP                 16      /* DCD */
+#define RNG_IP                 20      /* RNG */
+
+#define DIR_OP                 24      /* Special signal for control RS-485.
+                                        * Goes high when transmit,
+                                        * then goes low.
+                                        */
+
+/* Routing control signal 'sig' to line 'line' */
+#define MCTRL_SIG(sig, line)   ((line) << (sig))
+
+/*
+ * Example board initialization data:
+ *
+ * static struct resource sc2892_resources[] = {
+ *     DEFINE_RES_MEM(UART_PHYS_START, 0x10),
+ *     DEFINE_RES_IRQ(IRQ_EXT2),
+ * };
+ *
+ * static struct sccnxp_pdata sc2892_info = {
+ *     .frequency      = 3686400,
+ *     .mctrl_cfg[0]   = MCTRL_SIG(DIR_OP, LINE_OP0),
+ *     .mctrl_cfg[1]   = MCTRL_SIG(DIR_OP, LINE_OP1),
+ * };
+ *
+ * static struct platform_device sc2892 = {
+ *     .name           = "sc2892",
+ *     .id             = -1,
+ *     .resource       = sc2892_resources,
+ *     .num_resources  = ARRAY_SIZE(sc2892_resources),
+ *     .dev = {
+ *             .platform_data  = &sc2892_info,
+ *     },
+ * };
+ */
+
+/* SCCNXP platform data structure */
+struct sccnxp_pdata {
+       /* Frequency (extrenal clock or crystal) */
+       int                     frequency;
+       /* Shift for A0 line */
+       const u8                reg_shift;
+       /* Modem control lines configuration */
+       const u32               mctrl_cfg[SCCNXP_MAX_UARTS];
+       /* Timer value for polling mode (usecs) */
+       const unsigned int      poll_time_us;
+       /* Called during startup */
+       void (*init)(void);
+       /* Called before finish */
+       void (*exit)(void);
+};
+
+#endif