diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2020-11-10 01:12:36 +0200 |
---|---|---|
committer | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2020-11-16 21:38:55 +0200 |
commit | fdbc5d682e75ed53e923627d7aa79ff0cb134d79 (patch) | |
tree | 6044d1433a7f7e213725362969ed79c401314c0a /drivers/gpu/drm/i915/display/intel_dpll_mgr.h | |
parent | 3df3fe2412000fec34f9185f67f7c63d37b615ad (diff) | |
download | linux-fdbc5d682e75ed53e923627d7aa79ff0cb134d79.tar.gz linux-fdbc5d682e75ed53e923627d7aa79ff0cb134d79.tar.bz2 linux-fdbc5d682e75ed53e923627d7aa79ff0cb134d79.zip |
drm/i915: Introduce intel_dpll_get_hw_state()
Add a wrapper for the pll .get_hw_state() vfunc. Makes life
a bit less miserable when you don't have to worry where the
function pointer is stored.
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20201109231239.17002-1-ville.syrjala@linux.intel.com
Reviewed-by: Imre Deak <imre.deak@intel.com>
Diffstat (limited to 'drivers/gpu/drm/i915/display/intel_dpll_mgr.h')
-rw-r--r-- | drivers/gpu/drm/i915/display/intel_dpll_mgr.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/display/intel_dpll_mgr.h b/drivers/gpu/drm/i915/display/intel_dpll_mgr.h index 205542fb8dc7..4357f92eafd6 100644 --- a/drivers/gpu/drm/i915/display/intel_dpll_mgr.h +++ b/drivers/gpu/drm/i915/display/intel_dpll_mgr.h @@ -400,6 +400,9 @@ void intel_update_active_dpll(struct intel_atomic_state *state, struct intel_encoder *encoder); int intel_dpll_get_freq(struct drm_i915_private *i915, const struct intel_shared_dpll *pll); +bool intel_dpll_get_hw_state(struct drm_i915_private *i915, + struct intel_shared_dpll *pll, + struct intel_dpll_hw_state *hw_state); void intel_prepare_shared_dpll(const struct intel_crtc_state *crtc_state); void intel_enable_shared_dpll(const struct intel_crtc_state *crtc_state); void intel_disable_shared_dpll(const struct intel_crtc_state *crtc_state); |