We'll need to access the dispc_device structure from other parts of the
driver so let's move it to a header.

Signed-off-by: Maxime Ripard <mrip...@kernel.org>
---
 drivers/gpu/drm/tidss/tidss_dispc.c | 33 ---------------------------------
 drivers/gpu/drm/tidss/tidss_dispc.h | 33 +++++++++++++++++++++++++++++++++
 2 files changed, 33 insertions(+), 33 deletions(-)

diff --git a/drivers/gpu/drm/tidss/tidss_dispc.c 
b/drivers/gpu/drm/tidss/tidss_dispc.c
index 
ef948e3041e10bc65cf2c4794a4e4cffa7e3fb3a..2f9cf95d6d0525a02d8adaae968aa551b7e27077
 100644
--- a/drivers/gpu/drm/tidss/tidss_dispc.c
+++ b/drivers/gpu/drm/tidss/tidss_dispc.c
@@ -476,43 +476,10 @@ const struct dispc_features dispc_am62l_feats = {
        .vid_order = {0},
 };
 
 static const u16 *dispc_common_regmap;
 
-struct dss_vp_data {
-       u32 *gamma_table;
-};
-
-struct dispc_device {
-       struct tidss_device *tidss;
-       struct device *dev;
-
-       void __iomem *base_common;
-       void __iomem *base_vid[TIDSS_MAX_PLANES];
-       void __iomem *base_ovr[TIDSS_MAX_PORTS];
-       void __iomem *base_vp[TIDSS_MAX_PORTS];
-
-       struct regmap *am65x_oldi_io_ctrl;
-
-       struct clk *vp_clk[TIDSS_MAX_PORTS];
-
-       const struct dispc_features *feat;
-
-       struct clk *fclk;
-
-       bool is_enabled;
-
-       struct dss_vp_data vp_data[TIDSS_MAX_PORTS];
-
-       u32 *fourccs;
-       u32 num_fourccs;
-
-       u32 memory_bandwidth_limit;
-
-       struct dispc_errata errata;
-};
-
 static void CH(struct dispc_device *dispc)
 {
        WARN_ON((dispc->dev->power.runtime_status != RPM_ACTIVE) &&
                (dispc->dev->power.runtime_status != RPM_RESUMING) &&
                (dispc->dev->power.runtime_status != RPM_SUSPENDING));
diff --git a/drivers/gpu/drm/tidss/tidss_dispc.h 
b/drivers/gpu/drm/tidss/tidss_dispc.h
index 
849ec984026e223de7c8a55a4b5672c2262f38c0..f5d5798de1ba550dedbcba36b1ef41d5ecceaa0c
 100644
--- a/drivers/gpu/drm/tidss/tidss_dispc.h
+++ b/drivers/gpu/drm/tidss/tidss_dispc.h
@@ -95,10 +95,43 @@ struct dispc_features {
        u32 num_vids;
        struct dispc_vid_info vid_info[TIDSS_MAX_PLANES];
        u32 vid_order[TIDSS_MAX_PLANES];
 };
 
+struct dss_vp_data {
+       u32 *gamma_table;
+};
+
+struct dispc_device {
+       struct tidss_device *tidss;
+       struct device *dev;
+
+       void __iomem *base_common;
+       void __iomem *base_vid[TIDSS_MAX_PLANES];
+       void __iomem *base_ovr[TIDSS_MAX_PORTS];
+       void __iomem *base_vp[TIDSS_MAX_PORTS];
+
+       struct regmap *am65x_oldi_io_ctrl;
+
+       struct clk *vp_clk[TIDSS_MAX_PORTS];
+
+       const struct dispc_features *feat;
+
+       struct clk *fclk;
+
+       bool is_enabled;
+
+       struct dss_vp_data vp_data[TIDSS_MAX_PORTS];
+
+       u32 *fourccs;
+       u32 num_fourccs;
+
+       u32 memory_bandwidth_limit;
+
+       struct dispc_errata errata;
+};
+
 extern const struct dispc_features dispc_k2g_feats;
 extern const struct dispc_features dispc_am625_feats;
 extern const struct dispc_features dispc_am62a7_feats;
 extern const struct dispc_features dispc_am62l_feats;
 extern const struct dispc_features dispc_am65x_feats;

-- 
2.50.1

Reply via email to