aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu.h
diff options
context:
space:
mode:
authorNils Wallménius <nils.wallmenius@gmail.com>2016-05-02 12:46:15 -0400
committerAlex Deucher <alexander.deucher@amd.com>2016-05-04 20:20:10 -0400
commit06ab6832ac06c77332e3b0415977acf68ea364cf (patch)
treeb40e6011af74c5c1da7ce91305235b1b0139d22a /drivers/gpu/drm/amd/amdgpu/amdgpu.h
parent62250a910a4090f88b729e04baf4369d78ba5bdc (diff)
drm/amdgpu: Mark all instances of struct drm_info_list as const
All these are compile time constand and the drm_debugfs_create/remove_files functions take a const pointer argument. Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Nils Wallménius <nils.wallmenius@gmail.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
index 660213a1682a..d1ad7634f351 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
@@ -1701,12 +1701,12 @@ static inline void amdgpu_mn_unregister(struct amdgpu_bo *bo) {}
1701 * Debugfs 1701 * Debugfs
1702 */ 1702 */
1703struct amdgpu_debugfs { 1703struct amdgpu_debugfs {
1704 struct drm_info_list *files; 1704 const struct drm_info_list *files;
1705 unsigned num_files; 1705 unsigned num_files;
1706}; 1706};
1707 1707
1708int amdgpu_debugfs_add_files(struct amdgpu_device *adev, 1708int amdgpu_debugfs_add_files(struct amdgpu_device *adev,
1709 struct drm_info_list *files, 1709 const struct drm_info_list *files,
1710 unsigned nfiles); 1710 unsigned nfiles);
1711int amdgpu_debugfs_fence_init(struct amdgpu_device *adev); 1711int amdgpu_debugfs_fence_init(struct amdgpu_device *adev);
1712 1712