Commit 60aca574 authored by Ville Syrjälä's avatar Ville Syrjälä

drm/i915: Pass dev_priv to ilk_disable_lp_wm()

Get rid of another 'dev' usage by passing dev_priv instead.
Signed-off-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191127190556.1574-3-ville.syrjala@linux.intel.comReviewed-by: default avatarJosé Roberto de Souza <jose.souza@intel.com>
parent d2432796
...@@ -6166,7 +6166,7 @@ static void intel_pre_plane_update(struct intel_crtc_state *old_crtc_state, ...@@ -6166,7 +6166,7 @@ static void intel_pre_plane_update(struct intel_crtc_state *old_crtc_state,
* *
* WaCxSRDisabledForSpriteScaling:ivb * WaCxSRDisabledForSpriteScaling:ivb
*/ */
if (pipe_config->disable_lp_wm && ilk_disable_lp_wm(dev) && if (pipe_config->disable_lp_wm && ilk_disable_lp_wm(dev_priv) &&
old_crtc_state->hw.active) old_crtc_state->hw.active)
intel_wait_for_vblank(dev_priv, crtc->pipe); intel_wait_for_vblank(dev_priv, crtc->pipe);
......
...@@ -3592,10 +3592,8 @@ static void ilk_write_wm_values(struct drm_i915_private *dev_priv, ...@@ -3592,10 +3592,8 @@ static void ilk_write_wm_values(struct drm_i915_private *dev_priv,
dev_priv->wm.hw = *results; dev_priv->wm.hw = *results;
} }
bool ilk_disable_lp_wm(struct drm_device *dev) bool ilk_disable_lp_wm(struct drm_i915_private *dev_priv)
{ {
struct drm_i915_private *dev_priv = to_i915(dev);
return _ilk_disable_lp_wm(dev_priv, WM_DIRTY_LP_ALL); return _ilk_disable_lp_wm(dev_priv, WM_DIRTY_LP_ALL);
} }
......
...@@ -54,7 +54,7 @@ void skl_write_plane_wm(struct intel_plane *plane, ...@@ -54,7 +54,7 @@ void skl_write_plane_wm(struct intel_plane *plane,
const struct intel_crtc_state *crtc_state); const struct intel_crtc_state *crtc_state);
void skl_write_cursor_wm(struct intel_plane *plane, void skl_write_cursor_wm(struct intel_plane *plane,
const struct intel_crtc_state *crtc_state); const struct intel_crtc_state *crtc_state);
bool ilk_disable_lp_wm(struct drm_device *dev); bool ilk_disable_lp_wm(struct drm_i915_private *dev_priv);
void intel_init_ipc(struct drm_i915_private *dev_priv); void intel_init_ipc(struct drm_i915_private *dev_priv);
void intel_enable_ipc(struct drm_i915_private *dev_priv); void intel_enable_ipc(struct drm_i915_private *dev_priv);
......
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