aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2419-amdgpu-dm-constify-rgb-formats.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2419-amdgpu-dm-constify-rgb-formats.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2419-amdgpu-dm-constify-rgb-formats.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2419-amdgpu-dm-constify-rgb-formats.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2419-amdgpu-dm-constify-rgb-formats.patch
new file mode 100644
index 00000000..37dff372
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2419-amdgpu-dm-constify-rgb-formats.patch
@@ -0,0 +1,27 @@
+From 0d41fc6928397f0a6f1404d7c181f7e8e50dfaeb Mon Sep 17 00:00:00 2001
+From: Dave Airlie <airlied@redhat.com>
+Date: Fri, 29 Sep 2017 10:32:24 +1000
+Subject: [PATCH 2419/4131] amdgpu/dm: constify rgb formats.
+
+Signed-off-by: Dave Airlie <airlied@redhat.com>
+Reviewed-by: Harry Wentland <harry.wentland@amd.com>
+---
+ drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+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 e8d624c..d831d87 100644
+--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
++++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
+@@ -3239,7 +3239,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,
+--
+2.7.4
+