]> git.dujemihanovic.xyz Git - linux.git/commitdiff
drm/xe/display: fix type of intel_uncore_read*() functions
authorLuca Coelho <luciano.coelho@intel.com>
Thu, 14 Mar 2024 06:52:21 +0000 (08:52 +0200)
committerJani Nikula <jani.nikula@intel.com>
Wed, 20 Mar 2024 10:10:07 +0000 (12:10 +0200)
Some of the backported intel_uncore_read*() functions used the wrong
types.  Change the function declarations accordingly.

Reviewed-by: Gustavo Sousa <gustavo.sousa@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240314065221.1181158-1-luciano.coelho@intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/xe/compat-i915-headers/intel_uncore.h

index cd26ddc0f69e2bac31d627d6552b4a54eaa0845a..ef79793caa720ee65dab330b6ac535023114fb1c 100644 (file)
@@ -25,15 +25,15 @@ 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,
-                                    i915_reg_t i915_reg)
+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));
 
        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));