diff options
| author | Arvind Yadav <[email protected]> | 2017-07-01 09:47:01 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2017-07-14 15:06:03 +0000 |
| commit | c4fc445a9ded54cfbe4fca6299c0fcb7dcd0b47b (patch) | |
| tree | 61775d9dbfe264e1416dba786ae15f0b433c04d8 /drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c | |
| parent | drm: radeon: radeon_ttm: constify ttm_place structures. (diff) | |
| download | kernel-c4fc445a9ded54cfbe4fca6299c0fcb7dcd0b47b.tar.gz kernel-c4fc445a9ded54cfbe4fca6299c0fcb7dcd0b47b.zip | |
drm: radeon: constify drm_prop_enum_list structures.
drm_prop_enum_lists are not supposed to change at runtime. All functions
working with drm_prop_enum_list provided by <drm/drm_property.h> work with
const drm_prop_enum_list. So mark the non-const structs as const.
File size before:
text data bss dec hex filename
18276 384 0 18660 48e4 drivers/gpu/drm/radeon/radeon_display.o
File size After adding 'const':
text data bss dec hex filename
18660 0 0 18660 48e4 drivers/gpu/drm/radeon/radeon_display.o
Reviewed-by: Christian König <[email protected]>
Signed-off-by: Arvind Yadav <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c')
0 files changed, 0 insertions, 0 deletions
