]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/i915: Pass dev_priv to ilk_disable_lp_wm()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 27 Nov 2019 19:05:51 +0000 (21:05 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 4 Dec 2019 13:37:30 +0000 (15:37 +0200)
Get rid of another 'dev' usage by passing dev_priv instead.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191127190556.1574-3-ville.syrjala@linux.intel.com
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
drivers/gpu/drm/i915/display/intel_display.c
drivers/gpu/drm/i915/intel_pm.c
drivers/gpu/drm/i915/intel_pm.h

index 6b0f8cd3a9485573ebf527f4a2fa20797da6aea7..243f692fc586a45aedb9a4e2557ee1f04ceba022 100644 (file)
@@ -6166,7 +6166,7 @@ static void intel_pre_plane_update(struct intel_crtc_state *old_crtc_state,
         *
         * 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)
                intel_wait_for_vblank(dev_priv, crtc->pipe);
 
index eaf6397c5c3887f39fe3d43f03939fd39ffc6903..669d45e6e6d7ceca13793e32e11eb003b0700030 100644 (file)
@@ -3592,10 +3592,8 @@ static void ilk_write_wm_values(struct drm_i915_private *dev_priv,
        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);
 }
 
index b579c724b915cfdd6058dd39880d89e60d296701..c06c6a846d9a8d4cf1e76232b8502c0059810c94 100644 (file)
@@ -54,7 +54,7 @@ void skl_write_plane_wm(struct intel_plane *plane,
                        const struct intel_crtc_state *crtc_state);
 void skl_write_cursor_wm(struct intel_plane *plane,
                         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_enable_ipc(struct drm_i915_private *dev_priv);