From: Dave Airlie Date: Fri, 29 Sep 2017 00:32:24 +0000 (+1000) Subject: amdgpu/dm: constify rgb formats. X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=d90371b0f5f3258a808d12a17a942e4d16f8252c;p=openwrt%2Fstaging%2Fblogic.git amdgpu/dm: constify rgb formats. Signed-off-by: Dave Airlie Reviewed-by: Harry Wentland Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c index ef938521fec8..61ccddd19718 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c @@ -3062,7 +3062,7 @@ static const struct drm_plane_helper_funcs dm_plane_helper_funcs = { * plane capabilities, or initialize this array to all formats, so internal drm * check will succeed, and let DC to implement proper check */ -static uint32_t rgb_formats[] = { +static const uint32_t rgb_formats[] = { DRM_FORMAT_RGB888, DRM_FORMAT_XRGB8888, DRM_FORMAT_ARGB8888,