diff options
author | Jani Nikula <jani.nikula@intel.com> | 2022-02-03 15:02:32 +0100 |
---|---|---|
committer | Jani Nikula <jani.nikula@intel.com> | 2022-02-09 12:39:46 +0100 |
commit | a3de31d55b2a9fb672007aaf2b070cf90ac7dac6 (patch) | |
tree | 45c31a417e67d9f12f14c47600a2a5ef48536e82 /drivers/gpu | |
parent | drm/i915/dpll: add intel_dpll_crtc_compute_clock() (diff) | |
download | linux-a3de31d55b2a9fb672007aaf2b070cf90ac7dac6.tar.xz linux-a3de31d55b2a9fb672007aaf2b070cf90ac7dac6.zip |
drm/i915/dpll: hide struct intel_dpll_funcs
The struct is only needed in intel_dpll.c, move it there.
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/fedb27386cbad2b162d83a706273dd8ad9e8eed2.1643896905.git.jani.nikula@intel.com
Diffstat (limited to '')
-rw-r--r-- | drivers/gpu/drm/i915/display/intel_dpll.c | 4 | ||||
-rw-r--r-- | drivers/gpu/drm/i915/i915_drv.h | 5 |
2 files changed, 5 insertions, 4 deletions
diff --git a/drivers/gpu/drm/i915/display/intel_dpll.c b/drivers/gpu/drm/i915/display/intel_dpll.c index 809b2004e5b2..14f5ffe27d05 100644 --- a/drivers/gpu/drm/i915/display/intel_dpll.c +++ b/drivers/gpu/drm/i915/display/intel_dpll.c @@ -16,6 +16,10 @@ #include "intel_snps_phy.h" #include "vlv_sideband.h" +struct intel_dpll_funcs { + int (*crtc_compute_clock)(struct intel_crtc_state *crtc_state); +}; + struct intel_limit { struct { int min, max; diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h index cf9ae403e533..1bfd0acbfb2c 100644 --- a/drivers/gpu/drm/i915/i915_drv.h +++ b/drivers/gpu/drm/i915/i915_drv.h @@ -119,6 +119,7 @@ struct intel_color_funcs; struct intel_connector; struct intel_crtc; struct intel_dp; +struct intel_dpll_funcs; struct intel_encoder; struct intel_fbdev; struct intel_fdi_funcs; @@ -323,10 +324,6 @@ struct drm_i915_wm_disp_funcs { int (*compute_global_watermarks)(struct intel_atomic_state *state); }; -struct intel_dpll_funcs { - int (*crtc_compute_clock)(struct intel_crtc_state *crtc_state); -}; - struct drm_i915_display_funcs { /* Returns the active state of the crtc, and if the crtc is active, * fills out the pipe-config with the hw state. */ |