aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/linux-yocto-4.14.71/4979-drm-amd-display-Drop-unused-backlight-functions-in-D.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.14.71/4979-drm-amd-display-Drop-unused-backlight-functions-in-D.patch')
-rw-r--r--common/recipes-kernel/linux/linux-yocto-4.14.71/4979-drm-amd-display-Drop-unused-backlight-functions-in-D.patch54
1 files changed, 54 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.14.71/4979-drm-amd-display-Drop-unused-backlight-functions-in-D.patch b/common/recipes-kernel/linux/linux-yocto-4.14.71/4979-drm-amd-display-Drop-unused-backlight-functions-in-D.patch
new file mode 100644
index 00000000..b3508bb5
--- /dev/null
+++ b/common/recipes-kernel/linux/linux-yocto-4.14.71/4979-drm-amd-display-Drop-unused-backlight-functions-in-D.patch
@@ -0,0 +1,54 @@
+From 6a6ac24c463ff14ab2369c2ce2e376de1143c838 Mon Sep 17 00:00:00 2001
+From: Harry Wentland <harry.wentland@amd.com>
+Date: Thu, 19 Jul 2018 14:17:30 -0400
+Subject: [PATCH 4979/5725] drm/amd/display: Drop unused backlight functions in
+ DM
+
+These are only ever called for non-DC code.
+
+Signed-off-by: Harry Wentland <harry.wentland@amd.com>
+Acked-by: Alex Deucher <alexander.deucher@amd.com>
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 18 ++----------------
+ 1 file changed, 2 insertions(+), 16 deletions(-)
+
+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 1c6caa7..9289083 100644
+--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
++++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
+@@ -1699,18 +1699,6 @@ static void dm_bandwidth_update(struct amdgpu_device *adev)
+ /* TODO: implement later */
+ }
+
+-static void dm_set_backlight_level(struct amdgpu_encoder *amdgpu_encoder,
+- u8 level)
+-{
+- /* TODO: translate amdgpu_encoder to display_index and call DAL */
+-}
+-
+-static u8 dm_get_backlight_level(struct amdgpu_encoder *amdgpu_encoder)
+-{
+- /* TODO: translate amdgpu_encoder to display_index and call DAL */
+- return 0;
+-}
+-
+ static int amdgpu_notify_freesync(struct drm_device *dev, void *data,
+ struct drm_file *filp)
+ {
+@@ -1803,10 +1791,8 @@ static int amdgpu_notify_freesync(struct drm_device *dev, void *data,
+ static const struct amdgpu_display_funcs dm_display_funcs = {
+ .bandwidth_update = dm_bandwidth_update, /* called unconditionally */
+ .vblank_get_counter = dm_vblank_get_counter,/* called unconditionally */
+- .backlight_set_level =
+- dm_set_backlight_level,/* called unconditionally */
+- .backlight_get_level =
+- dm_get_backlight_level,/* called unconditionally */
++ .backlight_set_level = NULL, /* never called for DC */
++ .backlight_get_level = NULL, /* never called for DC */
+ .hpd_sense = NULL,/* called unconditionally */
+ .hpd_set_polarity = NULL, /* called unconditionally */
+ .hpd_get_gpio_reg = NULL, /* VBIOS parsing. DAL does it. */
+--
+2.7.4
+