Skip to contentSkip to conversation

drm/amd/display: delete the duplicate .set_odm_bypass initialization in dcn314_tg_funcs

PATCH Applied Liu Jian 2 participants 2 messages Nov 9, 2022 – Nov 10, 2022

Subsystems (3)
lore
Share & tools
lore

Liu Jian

author
#0 lore raw

PATCH 1/1 drm/amd/display: delete the duplicate .set_odm_bypass initialization in dcn314_tg_funcs

Fix below sparse warning:
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn314/dcn314_optc.c:244:18: warning: Initializer entry defined twice
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn314/dcn314_optc.c:257:18: also defined here

Fixes 5ade1b951dec ("drm/amd/display: Add OTG/ODM functions")
---
 drivers/gpu/drm/amd/display/dc/dcn314/dcn314_optc.c | 1 -
 1 file changed, 1 deletion(-)
drivers/gpu/drm/amd/display/dc/dcn314/dcn314_optc.c +0 -1
index 47eb162f1a75..58d38de6a0f8 100644
@@ -241,7 +241,6 @@ static struct timing_generator_funcs dcn314_tg_funcs = {
 		.set_dsc_config = optc3_set_dsc_config,
 		.get_dsc_status = optc2_get_dsc_status,
 		.set_dwb_source = NULL,
-		.set_odm_bypass = optc3_set_odm_bypass,
 		.set_odm_combine = optc314_set_odm_combine,
 		.get_optc_source = optc2_get_optc_source,
 		.set_out_mux = optc3_set_out_mux,
Signature · 1 line
2.17.1
Applied
#1 lore raw

Applied. Thanks!

Quoted 26 lines · Liu Jian

Fix below sparse warning:
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn314/dcn314_optc.c:244:18: warning: Initializer entry defined twice
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn314/dcn314_optc.c:257:18: also defined here

Fixes 5ade1b951dec ("drm/amd/display: Add OTG/ODM functions")
---
 drivers/gpu/drm/amd/display/dc/dcn314/dcn314_optc.c | 1 -
 1 file changed, 1 deletion(-)
drivers/gpu/drm/amd/display/dc/dcn314/dcn314_optc.c +0 -2
index 47eb162f1a75..58d38de6a0f8 100644
@@ -241,7 +241,6 @@ static struct timing_generator_funcs dcn314_tg_funcs = {
                .set_dsc_config = optc3_set_dsc_config,
                .get_dsc_status = optc2_get_dsc_status,
                .set_dwb_source = NULL,
-               .set_odm_bypass = optc3_set_odm_bypass,
                .set_odm_combine = optc314_set_odm_combine,
                .get_optc_source = optc2_get_optc_source,
                .set_out_mux = optc3_set_out_mux,
--

2.17.1