diff options
author | Thierry Reding <treding@nvidia.com> | 2017-11-28 11:20:40 +0100 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2018-03-17 00:03:36 +0100 |
commit | 0281c4149021376123b4ccdb1548692a3f6e70bd (patch) | |
tree | e2d1031c16f495b117a96f2f6035736561455b8e /drivers/gpu/drm/tegra/drm.h | |
parent | 4ae4b5c0dbaa499f2fd9215caac6e474c8dd477f (diff) |
drm/tegra: hub: Use private object for global state
Rather than subclass the global atomic state to store the hub display
clock and rate, create a private object and store this data in its
state.
Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/gpu/drm/tegra/drm.h')
-rw-r--r-- | drivers/gpu/drm/tegra/drm.h | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/drivers/gpu/drm/tegra/drm.h b/drivers/gpu/drm/tegra/drm.h index 73b661ce7086..4f41aaec8530 100644 --- a/drivers/gpu/drm/tegra/drm.h +++ b/drivers/gpu/drm/tegra/drm.h @@ -42,20 +42,6 @@ struct tegra_fbdev { }; #endif -struct tegra_atomic_state { - struct drm_atomic_state base; - - struct clk *clk_disp; - struct tegra_dc *dc; - unsigned long rate; -}; - -static inline struct tegra_atomic_state * -to_tegra_atomic_state(struct drm_atomic_state *state) -{ - return container_of(state, struct tegra_atomic_state, base); -} - struct tegra_drm { struct drm_device *drm; |