aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2417-amdgpu-dm-constify-yuv_formats.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2417-amdgpu-dm-constify-yuv_formats.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2417-amdgpu-dm-constify-yuv_formats.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2417-amdgpu-dm-constify-yuv_formats.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2417-amdgpu-dm-constify-yuv_formats.patch
new file mode 100644
index 00000000..d04a3852
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2417-amdgpu-dm-constify-yuv_formats.patch
@@ -0,0 +1,27 @@
+From 6f62db47c1ea8bcd6cecae304e72e2c362af3b30 Mon Sep 17 00:00:00 2001
+From: Dave Airlie <airlied@redhat.com>
+Date: Fri, 29 Sep 2017 10:27:41 +1000
+Subject: [PATCH 2417/4131] amdgpu/dm: constify yuv_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 6cc8e0d..4b3ae03 100644
+--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
++++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
+@@ -3250,7 +3250,7 @@ static uint32_t rgb_formats[] = {
+ DRM_FORMAT_ABGR2101010,
+ };
+
+-static uint32_t yuv_formats[] = {
++static const uint32_t yuv_formats[] = {
+ DRM_FORMAT_NV12,
+ DRM_FORMAT_NV21,
+ };
+--
+2.7.4
+