aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/tegra/drm.h
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2014-12-02 15:12:28 +0100
committerThierry Reding <treding@nvidia.com>2015-01-27 10:14:46 +0100
commitd5bae6f33ee98cf4c6939c4b8db2fc76c1eed720 (patch)
tree4e978d540c6b4af8501f9f03f79c1c0909aaa271 /drivers/gpu/drm/tegra/drm.h
parentdrm/tegra: Convert output midlayer to helpers (diff)
downloadlinux-dev-d5bae6f33ee98cf4c6939c4b8db2fc76c1eed720.tar.xz
linux-dev-d5bae6f33ee98cf4c6939c4b8db2fc76c1eed720.zip
drm/tegra: output: Make ->setup_clock() optional
In order to transition output drivers to using the struct tegra_output as a helper rather than midlayer, make this callback optional. Instead drivers should implement the equivalent as part of ->mode_fixup(). For the conversion to atomic modesetting a new callback ->atomic_check() should be implemented that updates the display controller's state with the corresponding parent clock, rate and shift clock divider. 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.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/drivers/gpu/drm/tegra/drm.h b/drivers/gpu/drm/tegra/drm.h
index bf749ac4a344..d7433976a40b 100644
--- a/drivers/gpu/drm/tegra/drm.h
+++ b/drivers/gpu/drm/tegra/drm.h
@@ -240,16 +240,6 @@ static inline int tegra_output_disable(struct tegra_output *output)
return output ? -ENOSYS : -EINVAL;
}
-static inline int tegra_output_setup_clock(struct tegra_output *output,
- struct clk *clk, unsigned long pclk,
- unsigned int *div)
-{
- if (output && output->ops && output->ops->setup_clock)
- return output->ops->setup_clock(output, clk, pclk, div);
-
- return output ? -ENOSYS : -EINVAL;
-}
-
static inline int tegra_output_check_mode(struct tegra_output *output,
struct drm_display_mode *mode,
enum drm_mode_status *status)