mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-29 08:12:41 -04:00
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: Zhi Wang <zhiwang@kernel.org> Link: https://patchwork.freedesktop.org/patch/msgid/8b8d4acee15da07845ed1779d6856d5c3f50a132.1717773890.git.jani.nikula@intel.com Signed-off-by: Jani Nikula <jani.nikula@intel.com>
This commit is contained in:
@@ -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) \
|
||||
|
||||
Reference in New Issue
Block a user