]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit05780a0e9b170a11cf1ae9725ca61dfeebc5b96c
tree5408f83f413733ded0cf362d420cc87e7c7d4d81
parentfe9ea36b0e7046b928993cf888620e71ccd021b6
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