Commit 200f178d authored by Jani Nikula's avatar Jani Nikula

drm/i915/gvt: rename range variable to stride

Range is a bit odd name for what really is stride. Rename. Switch to u32
while at it.

Cc: Zhenyu Wang <zhenyuw@linux.intel.com>
Cc: Zhi Wang <zhi.wang.linux@gmail.com>
Cc: intel-gvt-dev@lists.freedesktop.org
Reviewed-by: default avatarZhi Wang <zhiwang@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/8b8d4acee15da07845ed1779d6856d5c3f50a132.1717773890.git.jani.nikula@intel.comSigned-off-by: default avatarJani Nikula <jani.nikula@intel.com>
parent 51715cdc
......@@ -886,12 +886,12 @@ static unsigned int calc_index(unsigned int offset, i915_reg_t _start,
u32 start = i915_mmio_reg_offset(_start);
u32 next = i915_mmio_reg_offset(_next);
u32 end = i915_mmio_reg_offset(_end);
unsigned int range = next - start;
u32 stride = next - start;
if (offset < start || offset > end)
return INVALID_INDEX;
offset -= start;
return offset / range;
return offset / stride;
}
#define FDI_RX_CTL_TO_PIPE(offset) \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment