Skip to content

Commit

Permalink
drm/tegra: dc: Move state definition to header
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Thierry Reding committed Dec 13, 2017
1 parent 301e0dd commit b1415ff
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
18 changes: 0 additions & 18 deletions drivers/gpu/drm/tegra/dc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
18 changes: 18 additions & 0 deletions drivers/gpu/drm/tegra/dc.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b1415ff

Please sign in to comment.