drm/i915/dmabuf: Use scatterlist for_each_sg API
authorMichael J. Ruhl <michael.j.ruhl@intel.com>
Fri, 28 Oct 2022 15:50:29 +0000 (16:50 +0100)
committerMatthew Auld <matthew.auld@intel.com>
Mon, 31 Oct 2022 14:16:13 +0000 (14:16 +0000)
commit3096ae43cc815835cbaa846ae54e18cb92307730
treece710cdbe718b8a6db5d891349c8f2b291fd8cc1
parent81aa3f8e26e0fd8bffcaaaaf7e7a79ccc0a46111
drm/i915/dmabuf: Use scatterlist for_each_sg API

Update open coded for loop to use the standard scatterlist
for_each_sg API.

Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Signed-off-by: Michael J. Ruhl <michael.j.ruhl@intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20221028155029.494736-4-matthew.auld@intel.com
drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c