diff options
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3433-drm-amd-display-Remove-redundant-definition-of-dwb_s.patch')
-rw-r--r-- | meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3433-drm-amd-display-Remove-redundant-definition-of-dwb_s.patch | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3433-drm-amd-display-Remove-redundant-definition-of-dwb_s.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3433-drm-amd-display-Remove-redundant-definition-of-dwb_s.patch new file mode 100644 index 00000000..77098e24 --- /dev/null +++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3433-drm-amd-display-Remove-redundant-definition-of-dwb_s.patch @@ -0,0 +1,46 @@ +From ee831d3f62bc24656ff24fecceab07f9da094c7a Mon Sep 17 00:00:00 2001 +From: Julian Parkin <julian.parkin@amd.com> +Date: Thu, 25 Jul 2019 16:53:27 -0400 +Subject: [PATCH 3433/4256] drm/amd/display: Remove redundant definition of + dwb_source enums + +There are repeated (but guarded) definitions of dwb_src enums. There are +also unused entires. Clean them up. + +Signed-off-by: Julian Parkin <julian.parkin@amd.com> +Reviewed-by: Charlene Liu <Charlene.Liu@amd.com> +Acked-by: Leo Li <sunpeng.li@amd.com> +--- + drivers/gpu/drm/amd/display/dc/inc/hw/dwb.h | 12 ------------ + 1 file changed, 12 deletions(-) + +diff --git a/drivers/gpu/drm/amd/display/dc/inc/hw/dwb.h b/drivers/gpu/drm/amd/display/dc/inc/hw/dwb.h +index a3409294ae0c..ff1a07b35c85 100644 +--- a/drivers/gpu/drm/amd/display/dc/inc/hw/dwb.h ++++ b/drivers/gpu/drm/amd/display/dc/inc/hw/dwb.h +@@ -45,22 +45,10 @@ enum dwb_source { + dwb_src_scl = 0, /* for DCE7x/9x, DCN won't support. */ + dwb_src_blnd, /* for DCE7x/9x */ + dwb_src_fmt, /* for DCE7x/9x */ +-#if defined(CONFIG_DRM_AMD_DC_DCN2_0) + dwb_src_otg0 = 0x100, /* for DCN1.x/DCN2.x, register: mmDWB_SOURCE_SELECT */ + dwb_src_otg1, /* for DCN1.x/DCN2.x */ + dwb_src_otg2, /* for DCN1.x/DCN2.x */ + dwb_src_otg3, /* for DCN1.x/DCN2.x */ +-#else +- dwb_src_otg0 = 0x100, /* for DCN1.x, register: mmDWB_SOURCE_SELECT */ +- dwb_src_otg1, /* for DCN1.x */ +- dwb_src_otg2, /* for DCN1.x */ +- dwb_src_otg3, /* for DCN1.x */ +-#endif +- dwb_src_mpc0 = 0x200, /* for DCN2, register: mmMPC_DWB0_MUX, mmMPC_DWB1_MUX, mmMPC_DWB2_MUX */ +- dwb_src_mpc1, /* for DCN2 */ +- dwb_src_mpc2, /* for DCN2 */ +- dwb_src_mpc3, /* for DCN2 */ +- dwb_src_mpc4, /* for DCN2 */ + }; + + #if defined(CONFIG_DRM_AMD_DC_DCN2_0) +-- +2.17.1 + |