]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
drm/i915: pass dev_priv explicitly to CURSIZE
authorJani Nikula <jani.nikula@intel.com>
Wed, 15 May 2024 11:56:45 +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 CURSIZE register macro.

Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/521ca44416eb95dcfcf4bfbc32ac7f9371aeaf5d.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 f8baf25c4a4f882e03467773e4f6ee6069c23806..8553f6164760125e622a3828de13b99f0f5e3825 100644 (file)
@@ -297,7 +297,7 @@ static void i845_cursor_update_arm(struct intel_plane *plane,
            plane->cursor.cntl != cntl) {
                intel_de_write_fw(dev_priv, CURCNTR(dev_priv, PIPE_A), 0);
                intel_de_write_fw(dev_priv, CURBASE(dev_priv, PIPE_A), base);
-               intel_de_write_fw(dev_priv, CURSIZE(PIPE_A), size);
+               intel_de_write_fw(dev_priv, CURSIZE(dev_priv, PIPE_A), size);
                intel_de_write_fw(dev_priv, CURPOS(dev_priv, PIPE_A), pos);
                intel_de_write_fw(dev_priv, CURCNTR(dev_priv, PIPE_A), cntl);
 
index 0d1ee13ec06634f449557bc6bc1f040a1142c15c..7c3a76f5151d160ad3934a92af383631cff7e119 100644 (file)
@@ -70,7 +70,7 @@
 #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(dev_priv, pipe) _MMIO_CURSOR2(dev_priv, pipe, _CURAPOS_ERLY_TPT)
-#define CURSIZE(pipe) _MMIO_CURSOR2(dev_priv, pipe, _CURASIZE)
+#define CURSIZE(dev_priv, 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)
 #define CURSURFLIVE(pipe) _MMIO_CURSOR2(dev_priv, pipe, _CURASURFLIVE)