]> xenbits.xensource.com Git - people/aperard/linux-chromebook.git/commitdiff
CHROMIUM: drm/exynos: make struct exynos_drm_crtc private
authorMandeep Singh Baines <msb@chromium.org>
Mon, 17 Dec 2012 22:38:04 +0000 (14:38 -0800)
committerGerrit <chrome-bot@google.com>
Wed, 19 Dec 2012 06:20:54 +0000 (22:20 -0800)
struct exynos_drm_crtc is only used in exynos_drm_crtc.c.

BUG=none
TEST=Compiles. Boots.

Change-Id: I8301930eef575f3015ecd3eae2fe279c516ef351
Signed-off-by: Mandeep Singh Baines <msb@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/39806

drivers/gpu/drm/exynos/exynos_drm_crtc.c
drivers/gpu/drm/exynos/exynos_drm_drv.h

index db08053ae07d805bf84d87c8a3ffa4696d40c7bc..6532b23947f5d2d333c22fca88a905f6e5d1eafc 100644 (file)
 #include "exynos_drm_gem.h"
 #include "exynos_trace.h"
 
+/*
+ * Exynos specific crtc structure.
+ *
+ * @drm_crtc: crtc object.
+ * @overlay: contain information common to display controller and hdmi and
+ *     contents of this overlay object would be copied to sub driver size.
+ * @current_fb: current fb that is being scanned out
+ * @pending_fb: fb that will start scanout on next flip
+ * @event: vblank event that is currently queued for flip
+ * @pipe: a crtc index created at load() with a new crtc object creation
+ *     and the crtc object would be set to private->crtc array
+ *     to get a crtc object corresponding to this pipe from private->crtc
+ *     array when irq interrupt occured. the reason of using this pipe is that
+ *     drm framework doesn't support multiple irq yet.
+ *     we can refer to the crtc to current hardware interrupt occured through
+ *     this pipe value.
+ * @dpms: store the crtc dpms value
+ * @flip_pending: there is a flip pending that we need to process next vblank
+ */
+struct exynos_drm_crtc {
+       struct drm_crtc                 drm_crtc;
+       struct exynos_drm_overlay       overlay;
+       struct drm_framebuffer          *current_fb;
+       struct drm_framebuffer          *pending_fb;
+#ifdef CONFIG_DMA_SHARED_BUFFER_USES_KDS
+       struct drm_pending_vblank_event *event;
+       struct kds_resource_set         *current_kds;
+       struct kds_resource_set         *pending_kds;
+       struct kds_resource_set         *future_kds;
+       struct kds_resource_set         *future_kds_extra;
+#endif
+       unsigned int                    pipe;
+       unsigned int                    dpms;
+       unsigned int                    flip_in_flight;
+       atomic_t                        flip_pending;
+};
+
+#define to_exynos_crtc(x)      container_of(x, struct exynos_drm_crtc,\
+                               drm_crtc)
+
 static void exynos_drm_crtc_apply(struct drm_crtc *crtc)
 {
        struct exynos_drm_crtc *exynos_crtc = to_exynos_crtc(crtc);
index f4b92d1856cb5431e5491c100d3b6808d574b0b1..ef7ebbb9965d88b470c185bc2085ffe28bef31d5 100644 (file)
@@ -243,6 +243,8 @@ struct exynos_drm_fb {
 #endif
 };
 
+#define to_exynos_fb(x)        container_of(x, struct exynos_drm_fb, fb)
+
 void exynos_drm_fb_release(struct kref *kref);
 
 static inline void exynos_drm_fb_get(struct exynos_drm_fb *exynos_fb)
@@ -255,47 +257,6 @@ static inline void exynos_drm_fb_put(struct exynos_drm_fb *exynos_fb)
        kref_put(&exynos_fb->refcount, exynos_drm_fb_release);
 }
 
-/*
- * Exynos specific crtc structure.
- *
- * @drm_crtc: crtc object.
- * @overlay: contain information common to display controller and hdmi and
- *     contents of this overlay object would be copied to sub driver size.
- * @current_fb: current fb that is being scanned out
- * @pending_fb: fb that will start scanout on next flip
- * @event: vblank event that is currently queued for flip
- * @pipe: a crtc index created at load() with a new crtc object creation
- *     and the crtc object would be set to private->crtc array
- *     to get a crtc object corresponding to this pipe from private->crtc
- *     array when irq interrupt occured. the reason of using this pipe is that
- *     drm framework doesn't support multiple irq yet.
- *     we can refer to the crtc to current hardware interrupt occured through
- *     this pipe value.
- * @dpms: store the crtc dpms value
- * @flip_pending: there is a flip pending that we need to process next vblank
- */
-struct exynos_drm_crtc {
-       struct drm_crtc                 drm_crtc;
-       struct exynos_drm_overlay       overlay;
-       struct drm_framebuffer          *current_fb;
-       struct drm_framebuffer          *pending_fb;
-#ifdef CONFIG_DMA_SHARED_BUFFER_USES_KDS
-       struct drm_pending_vblank_event *event;
-       struct kds_resource_set         *current_kds;
-       struct kds_resource_set         *pending_kds;
-       struct kds_resource_set         *future_kds;
-       struct kds_resource_set         *future_kds_extra;
-#endif
-       unsigned int                    pipe;
-       unsigned int                    dpms;
-       unsigned int                    flip_in_flight;
-       atomic_t                        flip_pending;
-};
-
-#define to_exynos_fb(x)        container_of(x, struct exynos_drm_fb, fb)
-#define to_exynos_crtc(x)      container_of(x, struct exynos_drm_crtc,\
-                               drm_crtc)
-
 extern struct platform_driver fimd_driver;
 extern struct platform_driver hdmi_driver;
 extern struct platform_driver dp_driver;