aboutsummaryrefslogtreecommitdiffstats
path: root/meta-v1000/recipes-kernel/linux/linux-yocto-4.14.71/0368-drm-amd-display-Make-dc_link-param-const-in-set_driv.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-v1000/recipes-kernel/linux/linux-yocto-4.14.71/0368-drm-amd-display-Make-dc_link-param-const-in-set_driv.patch')
-rw-r--r--meta-v1000/recipes-kernel/linux/linux-yocto-4.14.71/0368-drm-amd-display-Make-dc_link-param-const-in-set_driv.patch44
1 files changed, 44 insertions, 0 deletions
diff --git a/meta-v1000/recipes-kernel/linux/linux-yocto-4.14.71/0368-drm-amd-display-Make-dc_link-param-const-in-set_driv.patch b/meta-v1000/recipes-kernel/linux/linux-yocto-4.14.71/0368-drm-amd-display-Make-dc_link-param-const-in-set_driv.patch
new file mode 100644
index 00000000..23d45ece
--- /dev/null
+++ b/meta-v1000/recipes-kernel/linux/linux-yocto-4.14.71/0368-drm-amd-display-Make-dc_link-param-const-in-set_driv.patch
@@ -0,0 +1,44 @@
+From 49d1e6e5dcf6943eb8d793dd1fcf31e70f51d440 Mon Sep 17 00:00:00 2001
+From: Zeyu Fan <Zeyu.Fan@amd.com>
+Date: Fri, 21 Apr 2017 10:55:01 -0400
+Subject: [PATCH 0368/4131] drm/amd/display: Make dc_link param const in
+ set_drive_settings
+
+Signed-off-by: Zeyu Fan <Zeyu.Fan@amd.com>
+Acked-by: Harry Wentland <Harry.Wentland@amd.com>
+Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c | 2 +-
+ drivers/gpu/drm/amd/display/dc/dc.h | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c b/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c
+index 953e201..1728646 100644
+--- a/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c
++++ b/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c
+@@ -605,7 +605,7 @@ static bool is_max_vs_reached(
+ }
+
+ void dc_link_dp_set_drive_settings(
+- struct dc_link *link,
++ const struct dc_link *link,
+ struct link_training_settings *lt_settings)
+ {
+ struct core_link *core_link = DC_LINK_TO_CORE(link);
+diff --git a/drivers/gpu/drm/amd/display/dc/dc.h b/drivers/gpu/drm/amd/display/dc/dc.h
+index 5629e3c..a2a9e4e 100644
+--- a/drivers/gpu/drm/amd/display/dc/dc.h
++++ b/drivers/gpu/drm/amd/display/dc/dc.h
+@@ -691,7 +691,7 @@ void dc_link_remove_remote_sink(
+ void dc_link_set_sink(const struct dc_link *link, struct dc_sink *sink);
+
+ void dc_link_dp_set_drive_settings(
+- struct dc_link *link,
++ const struct dc_link *link,
+ struct link_training_settings *lt_settings);
+
+ bool dc_link_dp_perform_link_training(
+--
+2.7.4
+