Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amdgpu/display: remove dal_cmd_tbl_helper_dcn2_get_table2

It's unused and identical to dal_cmd_tbl_helper_dce112_get_table2.

Reviewed-by: Luben Tuikov <luben.tuikov@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

-43
-40
drivers/gpu/drm/amd/display/dc/bios/dce112/command_table_helper2_dce112.c
··· 388 388 { 389 389 return &command_table_helper_funcs; 390 390 } 391 - 392 - #if defined(CONFIG_DRM_AMD_DC_DCN3_0) 393 - /* function table */ 394 - static const struct command_table_helper command_table_helper_funcs_dcn2x = { 395 - .controller_id_to_atom = dal_cmd_table_helper_controller_id_to_atom2, 396 - .encoder_action_to_atom = encoder_action_to_atom, 397 - .engine_bp_to_atom = engine_bp_to_atom, 398 - .clock_source_id_to_atom = clock_source_id_to_atom, 399 - .clock_source_id_to_atom_phy_clk_src_id = 400 - clock_source_id_to_atom_phy_clk_src_id, 401 - .signal_type_to_atom_dig_mode = signal_type_to_atom_dig_mode, 402 - .hpd_sel_to_atom = hpd_sel_to_atom, 403 - .dig_encoder_sel_to_atom = dig_encoder_sel_to_atom, 404 - .phy_id_to_atom = phy_id_to_atom, 405 - .disp_power_gating_action_to_atom = disp_power_gating_action_to_atom, 406 - .clock_source_id_to_ref_clk_src = NULL, 407 - .transmitter_bp_to_atom = NULL, 408 - .encoder_id_to_atom = dal_cmd_table_helper_encoder_id_to_atom2, 409 - .encoder_mode_bp_to_atom = 410 - dal_cmd_table_helper_encoder_mode_bp_to_atom2, 411 - .dc_clock_type_to_atom = dc_clock_type_to_atom, 412 - .transmitter_color_depth_to_atom = transmitter_color_depth_to_atom, 413 - 414 - }; 415 - 416 - /* 417 - * dal_cmd_tbl_helper_dce110_get_table 418 - * 419 - * @brief 420 - * Initialize command table helper functions 421 - * 422 - * @param 423 - * const struct command_table_helper **h - [out] struct of functions 424 - * 425 - */ 426 - const struct command_table_helper *dal_cmd_tbl_helper_dcn2_get_table2(void) 427 - { 428 - return &command_table_helper_funcs_dcn2x; 429 - } 430 - #endif
-3
drivers/gpu/drm/amd/display/dc/bios/dce112/command_table_helper2_dce112.h
··· 30 30 31 31 /* Initialize command table helper functions */ 32 32 const struct command_table_helper *dal_cmd_tbl_helper_dce112_get_table2(void); 33 - #if defined(CONFIG_DRM_AMD_DC_DCN3_0) 34 - const struct command_table_helper *dal_cmd_tbl_helper_dcn2_get_table2(void); 35 - #endif 36 33 37 34 #endif /* __DAL_COMMAND_TABLE_HELPER_DCE110_H__ */