summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915/intel_gvt_mmio_table.c
diff options
context:
space:
mode:
authorJani Nikula <jani.nikula@intel.com>2024-05-15 14:56:46 +0300
committerJani Nikula <jani.nikula@intel.com>2024-05-16 11:23:00 +0300
commit3de9076e9f823ec8418c053c734d6e0fff30a635 (patch)
tree8341c17d4e9400064553ba5f1d29e3c0c811781f /drivers/gpu/drm/i915/intel_gvt_mmio_table.c
parent2f757b4c401fbeffcd6d92e4a8b4b9b25f0070c7 (diff)
downloadlinux-3de9076e9f823ec8418c053c734d6e0fff30a635.tar.xz
drm/i915: pass dev_priv explicitly to CUR_FBC_CTL
Avoid the implicit dev_priv local variable use, and pass dev_priv explicitly to the CUR_FBC_CTL register macro. Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/f5e76f916ccf02aaf6016ffd476e9544817ac179.1715774156.git.jani.nikula@intel.com Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_gvt_mmio_table.c')
-rw-r--r--drivers/gpu/drm/i915/intel_gvt_mmio_table.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/i915/intel_gvt_mmio_table.c b/drivers/gpu/drm/i915/intel_gvt_mmio_table.c
index 5ea1fbc2e981..b485976976db 100644
--- a/drivers/gpu/drm/i915/intel_gvt_mmio_table.c
+++ b/drivers/gpu/drm/i915/intel_gvt_mmio_table.c
@@ -154,9 +154,9 @@ static int iterate_generic_mmio(struct intel_gvt_mmio_table_iter *iter)
MMIO_D(CURBASE(dev_priv, PIPE_A));
MMIO_D(CURBASE(dev_priv, PIPE_B));
MMIO_D(CURBASE(dev_priv, PIPE_C));
- MMIO_D(CUR_FBC_CTL(PIPE_A));
- MMIO_D(CUR_FBC_CTL(PIPE_B));
- MMIO_D(CUR_FBC_CTL(PIPE_C));
+ MMIO_D(CUR_FBC_CTL(dev_priv, PIPE_A));
+ MMIO_D(CUR_FBC_CTL(dev_priv, PIPE_B));
+ MMIO_D(CUR_FBC_CTL(dev_priv, PIPE_C));
MMIO_D(_MMIO(0x700ac));
MMIO_D(_MMIO(0x710ac));
MMIO_D(_MMIO(0x720ac));