aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
diff options
context:
space:
mode:
authorNils Wallménius <nils.wallmenius@gmail.com>2016-04-10 10:29:59 -0400
committerAlex Deucher <alexander.deucher@amd.com>2016-05-04 20:20:00 -0400
commitf498d9ed26fdfa2694ef3d892f032c7dc6feba14 (patch)
tree9fceead1f8fa36d25ec403b6f16fe069077a76b7 /drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
parent7e8d1fbdc09925db416f7ea8650ee05e7909e3fa (diff)
drm/amd: Mark some tables as const
This patch marks some compile-time constant tables 'const'. The tables marked in this patch are the low hanging fruit where little other changes were necesary to avoid casting away constness etc. Also mark some tables that are private to a file as static. 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_display.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_display.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
index 0535095c4d14..c835abe65df3 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
@@ -596,20 +596,20 @@ const struct drm_mode_config_funcs amdgpu_mode_funcs = {
596 .output_poll_changed = amdgpu_output_poll_changed 596 .output_poll_changed = amdgpu_output_poll_changed
597}; 597};
598 598
599static struct drm_prop_enum_list amdgpu_underscan_enum_list[] = 599static const struct drm_prop_enum_list amdgpu_underscan_enum_list[] =
600{ { UNDERSCAN_OFF, "off" }, 600{ { UNDERSCAN_OFF, "off" },
601 { UNDERSCAN_ON, "on" }, 601 { UNDERSCAN_ON, "on" },
602 { UNDERSCAN_AUTO, "auto" }, 602 { UNDERSCAN_AUTO, "auto" },
603}; 603};
604 604
605static struct drm_prop_enum_list amdgpu_audio_enum_list[] = 605static const struct drm_prop_enum_list amdgpu_audio_enum_list[] =
606{ { AMDGPU_AUDIO_DISABLE, "off" }, 606{ { AMDGPU_AUDIO_DISABLE, "off" },
607 { AMDGPU_AUDIO_ENABLE, "on" }, 607 { AMDGPU_AUDIO_ENABLE, "on" },
608 { AMDGPU_AUDIO_AUTO, "auto" }, 608 { AMDGPU_AUDIO_AUTO, "auto" },
609}; 609};
610 610
611/* XXX support different dither options? spatial, temporal, both, etc. */ 611/* XXX support different dither options? spatial, temporal, both, etc. */
612static struct drm_prop_enum_list amdgpu_dither_enum_list[] = 612static const struct drm_prop_enum_list amdgpu_dither_enum_list[] =
613{ { AMDGPU_FMT_DITHER_DISABLE, "off" }, 613{ { AMDGPU_FMT_DITHER_DISABLE, "off" },
614 { AMDGPU_FMT_DITHER_ENABLE, "on" }, 614 { AMDGPU_FMT_DITHER_ENABLE, "on" },
615}; 615};