diff options
author | Jani Nikula <jani.nikula@intel.com> | 2024-05-15 14:56:45 +0300 |
---|---|---|
committer | Jani Nikula <jani.nikula@intel.com> | 2024-05-16 11:23:00 +0300 |
commit | 2f757b4c401fbeffcd6d92e4a8b4b9b25f0070c7 (patch) | |
tree | 451392f0dc2ffcfee24ee43170bca8f42b4d42d8 /drivers/gpu/drm/i915/display/intel_cursor.c | |
parent | 224689e14a2223320aeeabea273fe5207b2e196a (diff) | |
download | linux-2f757b4c401fbeffcd6d92e4a8b4b9b25f0070c7.tar.xz |
drm/i915: pass dev_priv explicitly to CURSIZE
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>
Diffstat (limited to 'drivers/gpu/drm/i915/display/intel_cursor.c')
-rw-r--r-- | drivers/gpu/drm/i915/display/intel_cursor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/display/intel_cursor.c b/drivers/gpu/drm/i915/display/intel_cursor.c index f8baf25c4a4f..8553f6164760 100644 --- a/drivers/gpu/drm/i915/display/intel_cursor.c +++ b/drivers/gpu/drm/i915/display/intel_cursor.c @@ -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); |