diff options
author | Nils Wallménius <nils.wallmenius@gmail.com> | 2016-04-10 10:30:04 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2016-05-04 20:20:20 -0400 |
commit | aeba709a15ad66d3f8a2b38bada9f643ebe3dc04 (patch) | |
tree | 3a1bb6bd816890f2282d65bd8cd3ff30aa02e2e9 /drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c | |
parent | e90b62277b17207fa3854c4d8c3763d9974e7f47 (diff) |
drm/amd: make some function-local tables static const
These tables were initialized on stack on each call, avoid that
and save a little bit of text size.
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_connectors.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c index 119cdc2c43e7..60a0c9ac11b2 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c | |||
@@ -439,7 +439,7 @@ static void amdgpu_connector_add_common_modes(struct drm_encoder *encoder, | |||
439 | struct drm_display_mode *mode = NULL; | 439 | struct drm_display_mode *mode = NULL; |
440 | struct drm_display_mode *native_mode = &amdgpu_encoder->native_mode; | 440 | struct drm_display_mode *native_mode = &amdgpu_encoder->native_mode; |
441 | int i; | 441 | int i; |
442 | struct mode_size { | 442 | static const struct mode_size { |
443 | int w; | 443 | int w; |
444 | int h; | 444 | int h; |
445 | } common_modes[17] = { | 445 | } common_modes[17] = { |