summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/tegra
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2017-11-10 16:00:05 +0100
committerThierry Reding <treding@nvidia.com>2017-12-13 13:42:22 +0100
commitb1415ff21d43e264b32c18faf1c7ae7e53bc235e (patch)
treee0ba6e5d6e912fb3942ccae9212e70c120e1c67a /drivers/gpu/drm/tegra
parent301e0ddb3458255ed0fb3bb1f46b9caf186eafb5 (diff)
downloadtalos-obmc-linux-b1415ff21d43e264b32c18faf1c7ae7e53bc235e.tar.gz
talos-obmc-linux-b1415ff21d43e264b32c18faf1c7ae7e53bc235e.zip
drm/tegra: dc: Move state definition to header
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>
Diffstat (limited to 'drivers/gpu/drm/tegra')
-rw-r--r--drivers/gpu/drm/tegra/dc.c18
-rw-r--r--drivers/gpu/drm/tegra/dc.h18
2 files changed, 18 insertions, 18 deletions
diff --git a/drivers/gpu/drm/tegra/dc.c b/drivers/gpu/drm/tegra/dc.c
index 775e51c7a5c0..7b017c03feb3 100644
--- a/drivers/gpu/drm/tegra/dc.c
+++ b/drivers/gpu/drm/tegra/dc.c
@@ -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;
diff --git a/drivers/gpu/drm/tegra/dc.h b/drivers/gpu/drm/tegra/dc.h
index 6e46e4aed10b..b65dfbb0af89 100644
--- a/drivers/gpu/drm/tegra/dc.h
+++ b/drivers/gpu/drm/tegra/dc.h
@@ -18,6 +18,24 @@
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;
OpenPOWER on IntegriCloud