Commit 2d7f3bdb authored by Ville Syrjälä's avatar Ville Syrjälä

drm/i915: Pass the dma_addr_t array as const to rotate_pages()

rotate_pages() doesn't modify the passed in dma addresses, so make
them const.
Signed-off-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1452777736-4909-4-git-send-email-ville.syrjala@linux.intel.com
parent b5e16987
...@@ -3331,7 +3331,7 @@ i915_gem_obj_lookup_or_create_ggtt_vma(struct drm_i915_gem_object *obj, ...@@ -3331,7 +3331,7 @@ i915_gem_obj_lookup_or_create_ggtt_vma(struct drm_i915_gem_object *obj,
} }
static struct scatterlist * static struct scatterlist *
rotate_pages(dma_addr_t *in, unsigned int offset, rotate_pages(const dma_addr_t *in, unsigned int offset,
unsigned int width, unsigned int height, unsigned int width, unsigned int height,
struct sg_table *st, struct scatterlist *sg) struct sg_table *st, struct scatterlist *sg)
{ {
......
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