Commit 3896b169 authored by Luca Coelho's avatar Luca Coelho Committed by Jani Nikula
Browse files

drm/xe/display: fix type of intel_uncore_read*() functions



Some of the backported intel_uncore_read*() functions used the wrong
types.  Change the function declarations accordingly.

Reviewed-by: default avatarGustavo Sousa <gustavo.sousa@intel.com>
Signed-off-by: default avatarLuca Coelho <luciano.coelho@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240314065221.1181158-1-luciano.coelho@intel.com


Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
parent a825cef2
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -25,7 +25,7 @@ static inline u32 intel_uncore_read(struct intel_uncore *uncore,
	return xe_mmio_read32(__compat_uncore_to_gt(uncore), reg);
}

static inline u32 intel_uncore_read8(struct intel_uncore *uncore,
static inline u8 intel_uncore_read8(struct intel_uncore *uncore,
				    i915_reg_t i915_reg)
{
	struct xe_reg reg = XE_REG(i915_mmio_reg_offset(i915_reg));
@@ -33,7 +33,7 @@ static inline u32 intel_uncore_read8(struct intel_uncore *uncore,
	return xe_mmio_read8(__compat_uncore_to_gt(uncore), reg);
}

static inline u32 intel_uncore_read16(struct intel_uncore *uncore,
static inline u16 intel_uncore_read16(struct intel_uncore *uncore,
				      i915_reg_t i915_reg)
{
	struct xe_reg reg = XE_REG(i915_mmio_reg_offset(i915_reg));