aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/linux-yocto-4.14.71/4472-drm-amd-display-constify-a-few-dc_surface_update-fie.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.14.71/4472-drm-amd-display-constify-a-few-dc_surface_update-fie.patch')
-rw-r--r--common/recipes-kernel/linux/linux-yocto-4.14.71/4472-drm-amd-display-constify-a-few-dc_surface_update-fie.patch46
1 files changed, 46 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.14.71/4472-drm-amd-display-constify-a-few-dc_surface_update-fie.patch b/common/recipes-kernel/linux/linux-yocto-4.14.71/4472-drm-amd-display-constify-a-few-dc_surface_update-fie.patch
new file mode 100644
index 00000000..dbd32197
--- /dev/null
+++ b/common/recipes-kernel/linux/linux-yocto-4.14.71/4472-drm-amd-display-constify-a-few-dc_surface_update-fie.patch
@@ -0,0 +1,46 @@
+From e19b6b3366904b89270657f6bb6d8b18359dca6f Mon Sep 17 00:00:00 2001
+From: Jun Lei <Jun.Lei@amd.com>
+Date: Thu, 26 Apr 2018 10:24:25 -0400
+Subject: [PATCH 4472/5725] drm/amd/display: constify a few dc_surface_update
+ fields
+
+Signed-off-by: Jun Lei <Jun.Lei@amd.com>
+Reviewed-by: Jun Lei <Jun.Lei@amd.com>
+Acked-by: Harry Wentland <harry.wentland@amd.com>
+---
+ drivers/gpu/drm/amd/display/dc/dc.h | 14 +++++++-------
+ 1 file changed, 7 insertions(+), 7 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/display/dc/dc.h b/drivers/gpu/drm/amd/display/dc/dc.h
+index a3e2851..85edb34 100644
+--- a/drivers/gpu/drm/amd/display/dc/dc.h
++++ b/drivers/gpu/drm/amd/display/dc/dc.h
+@@ -503,18 +503,18 @@ struct dc_surface_update {
+ struct dc_plane_state *surface;
+
+ /* isr safe update parameters. null means no updates */
+- struct dc_flip_addrs *flip_addr;
+- struct dc_plane_info *plane_info;
+- struct dc_scaling_info *scaling_info;
++ const struct dc_flip_addrs *flip_addr;
++ const struct dc_plane_info *plane_info;
++ const struct dc_scaling_info *scaling_info;
+
+ /* following updates require alloc/sleep/spin that is not isr safe,
+ * null means no updates
+ */
+- struct dc_gamma *gamma;
+- struct dc_transfer_func *in_transfer_func;
++ const struct dc_gamma *gamma;
++ const struct dc_transfer_func *in_transfer_func;
+
+- struct dc_csc_transform *input_csc_color_matrix;
+- struct fixed31_32 *coeff_reduction_factor;
++ const struct dc_csc_transform *input_csc_color_matrix;
++ const struct fixed31_32 *coeff_reduction_factor;
+ };
+
+ /*
+--
+2.7.4
+