aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3650-drm-amd-display-Remove-duplicate-dm_pp_power_level-e.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3650-drm-amd-display-Remove-duplicate-dm_pp_power_level-e.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3650-drm-amd-display-Remove-duplicate-dm_pp_power_level-e.patch51
1 files changed, 51 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3650-drm-amd-display-Remove-duplicate-dm_pp_power_level-e.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3650-drm-amd-display-Remove-duplicate-dm_pp_power_level-e.patch
new file mode 100644
index 00000000..ebf12faf
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3650-drm-amd-display-Remove-duplicate-dm_pp_power_level-e.patch
@@ -0,0 +1,51 @@
+From 25f31d00223c95597d96f4371f3b1b7bfd6b95fe Mon Sep 17 00:00:00 2001
+From: Harry Wentland <harry.wentland@amd.com>
+Date: Fri, 9 Feb 2018 16:52:15 -0500
+Subject: [PATCH 3650/4131] drm/amd/display: Remove duplicate dm_pp_power_level
+ enum
+
+This is really just a copy of dm_pp_clocks_state, so just use that one.
+
+Thanks to Matthias Kaehlke for spotting this.
+
+Signed-off-by: Harry Wentland <harry.wentland@amd.com>
+Reviewed-by: Roman Li <Roman.Li@amd.com>
+Acked-by: Harry Wentland <harry.wentland@amd.com>
+---
+ drivers/gpu/drm/amd/display/dc/dm_services_types.h | 19 +------------------
+ 1 file changed, 1 insertion(+), 18 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/display/dc/dm_services_types.h b/drivers/gpu/drm/amd/display/dc/dm_services_types.h
+index fa26cf4..25ece53 100644
+--- a/drivers/gpu/drm/amd/display/dc/dm_services_types.h
++++ b/drivers/gpu/drm/amd/display/dc/dm_services_types.h
+@@ -239,25 +239,8 @@ enum dm_acpi_display_type {
+ AcpiDisplayType_DFP6 = 12
+ };
+
+-enum dm_pp_power_level {
+- DM_PP_POWER_LEVEL_INVALID,
+- DM_PP_POWER_LEVEL_ULTRA_LOW,
+- DM_PP_POWER_LEVEL_LOW,
+- DM_PP_POWER_LEVEL_NOMINAL,
+- DM_PP_POWER_LEVEL_PERFORMANCE,
+-
+- DM_PP_POWER_LEVEL_0 = DM_PP_POWER_LEVEL_ULTRA_LOW,
+- DM_PP_POWER_LEVEL_1 = DM_PP_POWER_LEVEL_LOW,
+- DM_PP_POWER_LEVEL_2 = DM_PP_POWER_LEVEL_NOMINAL,
+- DM_PP_POWER_LEVEL_3 = DM_PP_POWER_LEVEL_PERFORMANCE,
+- DM_PP_POWER_LEVEL_4 = DM_PP_CLOCKS_DPM_STATE_LEVEL_3 + 1,
+- DM_PP_POWER_LEVEL_5 = DM_PP_CLOCKS_DPM_STATE_LEVEL_4 + 1,
+- DM_PP_POWER_LEVEL_6 = DM_PP_CLOCKS_DPM_STATE_LEVEL_5 + 1,
+- DM_PP_POWER_LEVEL_7 = DM_PP_CLOCKS_DPM_STATE_LEVEL_6 + 1,
+-};
+-
+ struct dm_pp_power_level_change_request {
+- enum dm_pp_power_level power_level;
++ enum dm_pp_clocks_state power_level;
+ };
+
+ struct dm_pp_clock_for_voltage_req {
+--
+2.7.4
+