aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3619-drm-amd-display-remove-unused-function-setFieldWithM.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3619-drm-amd-display-remove-unused-function-setFieldWithM.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3619-drm-amd-display-remove-unused-function-setFieldWithM.patch50
1 files changed, 50 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3619-drm-amd-display-remove-unused-function-setFieldWithM.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3619-drm-amd-display-remove-unused-function-setFieldWithM.patch
new file mode 100644
index 00000000..6a963417
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3619-drm-amd-display-remove-unused-function-setFieldWithM.patch
@@ -0,0 +1,50 @@
+From d22b9adbed311cd1e5545ce68cdd8371d00a8c75 Mon Sep 17 00:00:00 2001
+From: YueHaibing <yuehaibing@huawei.com>
+Date: Tue, 27 Aug 2019 15:09:25 +0800
+Subject: [PATCH 3619/4256] drm/amd/display: remove unused function
+ setFieldWithMask
+
+After commit a9f54ce3c603 ("drm/amd/display: Refactoring VTEM"),
+there is no caller in tree.
+
+Reported-by: Hulk Robot <hulkci@huawei.com>
+Reviewed-by: Harry Wentland <harry.wentland@amd.com>
+Signed-off-by: YueHaibing <yuehaibing@huawei.com>
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ .../display/modules/info_packet/info_packet.c | 19 -------------------
+ 1 file changed, 19 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c b/drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c
+index 5f4b98df3d92..d885d642ed7f 100644
+--- a/drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c
++++ b/drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c
+@@ -114,25 +114,6 @@ enum ColorimetryYCCDP {
+ ColorimetryYCC_DP_ITU2020YCbCr = 7,
+ };
+
+-void setFieldWithMask(unsigned char *dest, unsigned int mask, unsigned int value)
+-{
+- unsigned int shift = 0;
+-
+- if (!mask || !dest)
+- return;
+-
+- while (!((mask >> shift) & 1))
+- shift++;
+-
+- //reset
+- *dest = *dest & ~mask;
+- //set
+- //dont let value span past mask
+- value = value & (mask >> shift);
+- //insert value
+- *dest = *dest | (value << shift);
+-}
+-
+ void mod_build_vsc_infopacket(const struct dc_stream_state *stream,
+ struct dc_info_packet *info_packet)
+ {
+--
+2.17.1
+