drm/i915: Make pipe_offsets[] & co. u32
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 23 Jun 2022 13:08:55 +0000 (16:08 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 27 Jun 2022 16:05:47 +0000 (19:05 +0300)
Using a signed type for the register offsets doesn't really
make sense. Switch to u32.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220623130900.26078-5-ville.syrjala@linux.intel.com
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/intel_device_info.h

index f55a1643ae04d32335443259861456af92a6d866..7e50c778c78eda27eef795e4c00abab314062a73 100644 (file)
@@ -236,9 +236,9 @@ struct intel_device_info {
                u32 mmio_offset;
 
                /* Register offsets for the various display pipes and transcoders */
-               int pipe_offsets[I915_MAX_TRANSCODERS];
-               int trans_offsets[I915_MAX_TRANSCODERS];
-               int cursor_offsets[I915_MAX_PIPES];
+               u32 pipe_offsets[I915_MAX_TRANSCODERS];
+               u32 trans_offsets[I915_MAX_TRANSCODERS];
+               u32 cursor_offsets[I915_MAX_PIPES];
        } display;