OSDN Git Service

drm: amd: amdgpu: constify ttm_place structures.
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Sun, 2 Jul 2017 09:13:58 +0000 (14:43 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 14 Jul 2017 15:06:03 +0000 (11:06 -0400)
commit1aaa56029f47e16f9d03e25a313677f16212ad72
tree5408f83f413733ded0cf362d420cc87e7c7d4d81
parentc4fc445a9ded54cfbe4fca6299c0fcb7dcd0b47b
drm: amd: amdgpu: constify ttm_place structures.

ttm_place are not supposed to change at runtime. All functions
working with ttm_place provided by <drm/ttm/ttm_placement.h> work
with const ttm_place. So mark the non-const structs as const.

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c