drm/i915: pass dev_priv explicitly to CURPOS_ERLY_TPT
authorJani Nikula <jani.nikula@intel.com>
Wed, 15 May 2024 11:56:44 +0000 (14:56 +0300)
committerJani Nikula <jani.nikula@intel.com>
Thu, 16 May 2024 08:23:00 +0000 (11:23 +0300)
Avoid the implicit dev_priv local variable use, and pass dev_priv
explicitly to the CURPOS_ERLY_TPT register macro.

Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/2263b6412e983026990f7f6730b0b1141be4fd0f.1715774156.git.jani.nikula@intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/display/intel_cursor.c
drivers/gpu/drm/i915/display/intel_cursor_regs.h

index 17039d37dc91f14e8f9c7233bf5a4e41f30aa471..f8baf25c4a4f882e03467773e4f6ee6069c23806 100644 (file)
@@ -543,7 +543,9 @@ static void i9xx_cursor_update_sel_fetch_arm(struct intel_plane *plane,
                if (crtc_state->enable_psr2_su_region_et) {
                        u32 val = intel_cursor_position(crtc_state, plane_state,
                                true);
-                       intel_de_write_fw(dev_priv, CURPOS_ERLY_TPT(pipe), val);
+                       intel_de_write_fw(dev_priv,
+                                         CURPOS_ERLY_TPT(dev_priv, pipe),
+                                         val);
                }
 
                intel_de_write_fw(dev_priv, PLANE_SEL_FETCH_CTL(pipe, plane->id),
index d0fa251ae8c4bf7659e1b83c5c6bc1ba77b439c3..0d1ee13ec06634f449557bc6bc1f040a1142c15c 100644 (file)
@@ -69,7 +69,7 @@
 #define CURCNTR(dev_priv, pipe) _MMIO_CURSOR2(dev_priv, pipe, _CURACNTR)
 #define CURBASE(dev_priv, pipe) _MMIO_CURSOR2(dev_priv, pipe, _CURABASE)
 #define CURPOS(dev_priv, pipe) _MMIO_CURSOR2(dev_priv, pipe, _CURAPOS)
-#define CURPOS_ERLY_TPT(pipe) _MMIO_CURSOR2(dev_priv, pipe, _CURAPOS_ERLY_TPT)
+#define CURPOS_ERLY_TPT(dev_priv, pipe) _MMIO_CURSOR2(dev_priv, pipe, _CURAPOS_ERLY_TPT)
 #define CURSIZE(pipe) _MMIO_CURSOR2(dev_priv, pipe, _CURASIZE)
 #define CUR_FBC_CTL(pipe) _MMIO_CURSOR2(dev_priv, pipe, _CUR_FBC_CTL_A)
 #define CUR_CHICKEN(pipe) _MMIO_CURSOR2(dev_priv, pipe, _CUR_CHICKEN_A)