drm/tegra: dc: Move state definition to header
authorThierry Reding <treding@nvidia.com>
Fri, 10 Nov 2017 15:00:05 +0000 (16:00 +0100)
committerThierry Reding <treding@nvidia.com>
Wed, 13 Dec 2017 12:42:22 +0000 (13:42 +0100)
Move the display controller state definition to the header file so that
it can be referenced by other files.

Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/dc.c
drivers/gpu/drm/tegra/dc.h

index 775e51c7a5c078d9559f3c6113fa4e220f635832..7b017c03feb3510706f5895a7872faa4f8f13123 100644 (file)
@@ -34,24 +34,6 @@ static inline struct tegra_plane *to_tegra_plane(struct drm_plane *plane)
        return container_of(plane, struct tegra_plane, base);
 }
 
-struct tegra_dc_state {
-       struct drm_crtc_state base;
-
-       struct clk *clk;
-       unsigned long pclk;
-       unsigned int div;
-
-       u32 planes;
-};
-
-static inline struct tegra_dc_state *to_dc_state(struct drm_crtc_state *state)
-{
-       if (state)
-               return container_of(state, struct tegra_dc_state, base);
-
-       return NULL;
-}
-
 struct tegra_plane_state {
        struct drm_plane_state base;
 
index 6e46e4aed10bc1f3f8eee54c4b4c8389c2bf299b..b65dfbb0af891155b2e47754c70c2f03fbbaa9ee 100644 (file)
 
 struct tegra_output;
 
+struct tegra_dc_state {
+       struct drm_crtc_state base;
+
+       struct clk *clk;
+       unsigned long pclk;
+       unsigned int div;
+
+       u32 planes;
+};
+
+static inline struct tegra_dc_state *to_dc_state(struct drm_crtc_state *state)
+{
+       if (state)
+               return container_of(state, struct tegra_dc_state, base);
+
+       return NULL;
+}
+
 struct tegra_dc_stats {
        unsigned long frames;
        unsigned long vblank;