aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorFelipe Balbi <balbi@ti.com>2012-09-06 08:45:39 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-09-06 12:17:02 -0400
commitd37c6cebcb0c7ab4fc9e000061c93cca9d2a3941 (patch)
treea2fca2022fd2f0fd258f0cb763e7b79f9de5c02b /arch
parentd21e4005e4a4c24939f239b49862e6b0852e9169 (diff)
serial: omap: move uart_omap_port definition to C file
nobody needs to access the uart_omap_port structure other than omap-serial.c file. Let's move that structure definition to the C source file in order to prevent anyone from accessing our structure. Tested-by: Shubhrajyoti D <shubhrajyoti@ti.com> Acked-by: Tony Lindgren <tony@atomide.com> Signed-off-by: Felipe Balbi <balbi@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/plat-omap/include/plat/omap-serial.h37
1 files changed, 0 insertions, 37 deletions
diff --git a/arch/arm/plat-omap/include/plat/omap-serial.h b/arch/arm/plat-omap/include/plat/omap-serial.h
index a79ed8b17d9b..3c9fd3e4263f 100644
--- a/arch/arm/plat-omap/include/plat/omap-serial.h
+++ b/arch/arm/plat-omap/include/plat/omap-serial.h
@@ -105,45 +105,8 @@ struct uart_omap_dma {
105 unsigned int rx_timeout; 105 unsigned int rx_timeout;
106}; 106};
107 107
108struct uart_omap_port {
109 struct uart_port port;
110 struct uart_omap_dma uart_dma;
111 struct device *dev;
112
113 unsigned char ier;
114 unsigned char lcr;
115 unsigned char mcr;
116 unsigned char fcr;
117 unsigned char efr;
118 unsigned char dll;
119 unsigned char dlh;
120 unsigned char mdr1;
121 unsigned char scr;
122
123 int use_dma;
124 /*
125 * Some bits in registers are cleared on a read, so they must
126 * be saved whenever the register is read but the bits will not
127 * be immediately processed.
128 */
129 unsigned int lsr_break_flag;
130 unsigned char msr_saved_flags;
131 char name[20];
132 unsigned long port_activity;
133 u32 context_loss_cnt;
134 u32 errata;
135 u8 wakeups_enabled;
136 108
137 int DTR_gpio; 109 int DTR_gpio;
138 int DTR_inverted; 110 int DTR_inverted;
139 int DTR_active; 111 int DTR_active;
140
141 struct pm_qos_request pm_qos_request;
142 u32 latency;
143 u32 calc_latency;
144 struct work_struct qos_work;
145};
146
147#define to_uart_omap_port(p) ((container_of((p), struct uart_omap_port, port)))
148
149#endif /* __OMAP_SERIAL_H__ */ 112#endif /* __OMAP_SERIAL_H__ */