aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2011-09-20 07:43:14 -0400
committerTomi Valkeinen <tomi.valkeinen@ti.com>2012-02-23 02:39:19 -0500
commit8f5e35a7942afe70eb0ba0d8193801b7989ae03a (patch)
treeb0bc502046eb4421085ee905e7fab1797298bc83
parent82d5b3e2319c9d1ea46c95b1e8b0db66d6f05a84 (diff)
OMAPFB: Move old omapfb private structs to a private include file
include/linux/omapfb.h contains structs that are used only by the omapfb driver. Move the structs into drivers/video/omap/omapfb.h. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
-rw-r--r--drivers/video/omap/omapfb.h25
-rw-r--r--include/linux/omapfb.h25
2 files changed, 25 insertions, 25 deletions
diff --git a/drivers/video/omap/omapfb.h b/drivers/video/omap/omapfb.h
index 3a5ab13845fc..07fe49878892 100644
--- a/drivers/video/omap/omapfb.h
+++ b/drivers/video/omap/omapfb.h
@@ -47,6 +47,31 @@
47 47
48struct omapfb_device; 48struct omapfb_device;
49 49
50#ifdef CONFIG_ARCH_OMAP1
51#define OMAPFB_PLANE_NUM 1
52#else
53#define OMAPFB_PLANE_NUM 3
54#endif
55
56struct omapfb_mem_region {
57 u32 paddr;
58 void __iomem *vaddr;
59 unsigned long size;
60 u8 type; /* OMAPFB_PLANE_MEM_* */
61 enum omapfb_color_format format;/* OMAPFB_COLOR_* */
62 unsigned format_used:1; /* Must be set when format is set.
63 * Needed b/c of the badly chosen 0
64 * base for OMAPFB_COLOR_* values
65 */
66 unsigned alloc:1; /* allocated by the driver */
67 unsigned map:1; /* kernel mapped by the driver */
68};
69
70struct omapfb_mem_desc {
71 int region_cnt;
72 struct omapfb_mem_region region[OMAPFB_PLANE_NUM];
73};
74
50struct lcd_panel { 75struct lcd_panel {
51 const char *name; 76 const char *name;
52 int config; /* TFT/STN, signal inversion */ 77 int config; /* TFT/STN, signal inversion */
diff --git a/include/linux/omapfb.h b/include/linux/omapfb.h
index 03f52555ce63..7a8e0ea345eb 100644
--- a/include/linux/omapfb.h
+++ b/include/linux/omapfb.h
@@ -222,31 +222,6 @@ struct omapfb_display_info {
222 222
223#include <plat/board.h> 223#include <plat/board.h>
224 224
225#ifdef CONFIG_ARCH_OMAP1
226#define OMAPFB_PLANE_NUM 1
227#else
228#define OMAPFB_PLANE_NUM 3
229#endif
230
231struct omapfb_mem_region {
232 u32 paddr;
233 void __iomem *vaddr;
234 unsigned long size;
235 u8 type; /* OMAPFB_PLANE_MEM_* */
236 enum omapfb_color_format format;/* OMAPFB_COLOR_* */
237 unsigned format_used:1; /* Must be set when format is set.
238 * Needed b/c of the badly chosen 0
239 * base for OMAPFB_COLOR_* values
240 */
241 unsigned alloc:1; /* allocated by the driver */
242 unsigned map:1; /* kernel mapped by the driver */
243};
244
245struct omapfb_mem_desc {
246 int region_cnt;
247 struct omapfb_mem_region region[OMAPFB_PLANE_NUM];
248};
249
250struct omapfb_platform_data { 225struct omapfb_platform_data {
251 struct omap_lcd_config lcd; 226 struct omap_lcd_config lcd;
252}; 227};