mirror of
https://github.com/torvalds/linux.git
synced 2026-05-24 15:12:13 +02: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:
parent
51715cdc98
commit
200f178d7c
|
|
@ -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) \
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user