Commit 06a50913 authored by Jani Nikula's avatar Jani Nikula

drm/i915: move fdi_funcs to display.funcs

Move display fdi functions under drm_i915_private display sub-struct.
Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
Reviewed-by: default avatarArun R Murthy <arun.r.murthy@intel.com>
Reviewed-by: default avatarLucas De Marchi <lucas.demarchi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/16ff8df6c08411c0e5aac3356dffe7f5120fcfeb.1661346845.git.jani.nikula@intel.com
parent 103472c1
...@@ -14,6 +14,7 @@ struct intel_cdclk_funcs; ...@@ -14,6 +14,7 @@ struct intel_cdclk_funcs;
struct intel_crtc; struct intel_crtc;
struct intel_crtc_state; struct intel_crtc_state;
struct intel_dpll_funcs; struct intel_dpll_funcs;
struct intel_fdi_funcs;
struct intel_hotplug_funcs; struct intel_hotplug_funcs;
struct intel_initial_plane_config; struct intel_initial_plane_config;
...@@ -67,6 +68,9 @@ struct intel_display { ...@@ -67,6 +68,9 @@ struct intel_display {
/* pm display functions */ /* pm display functions */
const struct intel_wm_funcs *wm; const struct intel_wm_funcs *wm;
/* fdi display functions */
const struct intel_fdi_funcs *fdi;
} funcs; } funcs;
}; };
......
...@@ -113,7 +113,7 @@ void intel_fdi_link_train(struct intel_crtc *crtc, ...@@ -113,7 +113,7 @@ void intel_fdi_link_train(struct intel_crtc *crtc,
{ {
struct drm_i915_private *dev_priv = to_i915(crtc->base.dev); struct drm_i915_private *dev_priv = to_i915(crtc->base.dev);
dev_priv->fdi_funcs->fdi_link_train(crtc, crtc_state); dev_priv->display.funcs.fdi->fdi_link_train(crtc, crtc_state);
} }
/* units of 100MHz */ /* units of 100MHz */
...@@ -1066,11 +1066,11 @@ void ...@@ -1066,11 +1066,11 @@ void
intel_fdi_init_hook(struct drm_i915_private *dev_priv) intel_fdi_init_hook(struct drm_i915_private *dev_priv)
{ {
if (IS_IRONLAKE(dev_priv)) { if (IS_IRONLAKE(dev_priv)) {
dev_priv->fdi_funcs = &ilk_funcs; dev_priv->display.funcs.fdi = &ilk_funcs;
} else if (IS_SANDYBRIDGE(dev_priv)) { } else if (IS_SANDYBRIDGE(dev_priv)) {
dev_priv->fdi_funcs = &gen6_funcs; dev_priv->display.funcs.fdi = &gen6_funcs;
} else if (IS_IVYBRIDGE(dev_priv)) { } else if (IS_IVYBRIDGE(dev_priv)) {
/* FIXME: detect B0+ stepping and use auto training */ /* FIXME: detect B0+ stepping and use auto training */
dev_priv->fdi_funcs = &ivb_funcs; dev_priv->display.funcs.fdi = &ivb_funcs;
} }
} }
...@@ -90,7 +90,6 @@ struct intel_connector; ...@@ -90,7 +90,6 @@ struct intel_connector;
struct intel_dp; struct intel_dp;
struct intel_encoder; struct intel_encoder;
struct intel_fbdev; struct intel_fbdev;
struct intel_fdi_funcs;
struct intel_gmbus; struct intel_gmbus;
struct intel_limit; struct intel_limit;
struct intel_overlay; struct intel_overlay;
...@@ -486,9 +485,6 @@ struct drm_i915_private { ...@@ -486,9 +485,6 @@ struct drm_i915_private {
/* pm private clock gating functions */ /* pm private clock gating functions */
const struct drm_i915_clock_gating_funcs *clock_gating_funcs; const struct drm_i915_clock_gating_funcs *clock_gating_funcs;
/* fdi display functions */
const struct intel_fdi_funcs *fdi_funcs;
/* Display internal color functions */ /* Display internal color functions */
const struct intel_color_funcs *color_funcs; const struct intel_color_funcs *color_funcs;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment