OMAPFB: Move old omapfb private structs to a private include file
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 20 Sep 2011 11:43:14 +0000 (14:43 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Thu, 23 Feb 2012 07:39:19 +0000 (09:39 +0200)
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>
drivers/video/omap/omapfb.h
include/linux/omapfb.h

index 3a5ab13845fc4d965db982f716db18820d75215c..07fe49878892c1e141d5fe6466d86588b4886613 100644 (file)
 
 struct omapfb_device;
 
+#ifdef CONFIG_ARCH_OMAP1
+#define OMAPFB_PLANE_NUM               1
+#else
+#define OMAPFB_PLANE_NUM               3
+#endif
+
+struct omapfb_mem_region {
+       u32             paddr;
+       void __iomem    *vaddr;
+       unsigned long   size;
+       u8              type;           /* OMAPFB_PLANE_MEM_* */
+       enum omapfb_color_format format;/* OMAPFB_COLOR_* */
+       unsigned        format_used:1;  /* Must be set when format is set.
+                                        * Needed b/c of the badly chosen 0
+                                        * base for OMAPFB_COLOR_* values
+                                        */
+       unsigned        alloc:1;        /* allocated by the driver */
+       unsigned        map:1;          /* kernel mapped by the driver */
+};
+
+struct omapfb_mem_desc {
+       int                             region_cnt;
+       struct omapfb_mem_region        region[OMAPFB_PLANE_NUM];
+};
+
 struct lcd_panel {
        const char      *name;
        int             config;         /* TFT/STN, signal inversion */
index 03f52555ce6352c5a3fb2fc134fa5249304504ae..7a8e0ea345ebc8bea4aa0fbd016ac8086f151e8d 100644 (file)
@@ -222,31 +222,6 @@ struct omapfb_display_info {
 
 #include <plat/board.h>
 
-#ifdef CONFIG_ARCH_OMAP1
-#define OMAPFB_PLANE_NUM               1
-#else
-#define OMAPFB_PLANE_NUM               3
-#endif
-
-struct omapfb_mem_region {
-       u32             paddr;
-       void __iomem    *vaddr;
-       unsigned long   size;
-       u8              type;           /* OMAPFB_PLANE_MEM_* */
-       enum omapfb_color_format format;/* OMAPFB_COLOR_* */
-       unsigned        format_used:1;  /* Must be set when format is set.
-                                        * Needed b/c of the badly chosen 0
-                                        * base for OMAPFB_COLOR_* values
-                                        */
-       unsigned        alloc:1;        /* allocated by the driver */
-       unsigned        map:1;          /* kernel mapped by the driver */
-};
-
-struct omapfb_mem_desc {
-       int                             region_cnt;
-       struct omapfb_mem_region        region[OMAPFB_PLANE_NUM];
-};
-
 struct omapfb_platform_data {
        struct omap_lcd_config          lcd;
 };
This page took 0.02633 seconds and 5 git commands to generate.