2
0
mirror of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-09-04 20:19:47 +08:00
linux/drivers/gpu/drm/amd/display/dc/bios
Luan Arcanjo b5838d1517 drm/amd/display/dc: Refactor remove duplications
All dce command_table_helper's shares a copy-pasted collection
of copy-pasted functions, which are: phy_id_to_atom,
clock_source_id_to_atom_phy_clk_src_id, and engine_bp_to_atom.

This patch removes the multiple copy-pasted by moving them to
the command_table_helper.c and make the command_table_helper's
calls the functions implemented by the command_table_helper.c
instead.

The changes were not tested on actual hardware. I am only able
to verify that the changes keep the code compileable and do my
best to to look repeatedly if I am not actually changing any code.

This is the version 4 of the PATCH, fixed comments about
licence in the new files and the matches From email to
Signed-off-by email. Fixed comments about using
command_table_helper instead of creating a dce_common

Signed-off-by: Luan Icaro Pinto Arcanjo <luanicaro@usp.br>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2025-02-27 15:52:32 -05:00
..
dce60 drm/amd/display/dc: Refactor remove duplications 2025-02-27 15:52:32 -05:00
dce80 drm/amd/display/dc: Refactor remove duplications 2025-02-27 15:52:32 -05:00
dce110 drm/amd/display/dc: Refactor remove duplications 2025-02-27 15:52:32 -05:00
dce112 drm/amd/display/dc: Refactor remove duplications 2025-02-27 15:52:32 -05:00
bios_parser2.c drm/amd/display/dc: add support for oem i2c in atom_firmware_info_v3_1 2025-02-12 21:02:54 -05:00
bios_parser2.h
bios_parser_common.c drm/amd/display: Add support for USBC connector 2022-03-31 23:05:53 -04:00
bios_parser_common.h
bios_parser_helper.c drm/amd/display: Remove unused function bios_get_vga_enabled_displays 2024-09-26 17:06:17 -04:00
bios_parser_helper.h drm/amd/display: Remove unused function bios_get_vga_enabled_displays 2024-09-26 17:06:17 -04:00
bios_parser_interface.c
bios_parser_types_internal2.h drm/amd/display: Add dependant changes for DCN32/321 2022-06-03 16:43:38 -04:00
bios_parser_types_internal.h
bios_parser.c drm/amd/display: Check BIOS images before it is used 2024-06-14 16:18:55 -04:00
bios_parser.h
command_table2.c drm/amd/display: fix dcn4x init failed 2025-02-25 11:45:11 -05:00
command_table2.h drm/amd/display: Pass pwrseq inst for backlight and ABM 2023-12-06 15:22:33 -05:00
command_table_helper2.c drm/amd/display: fix dcn4x init failed 2025-02-25 11:45:11 -05:00
command_table_helper2.h
command_table_helper_struct.h
command_table_helper.c drm/amd/display/dc: Refactor remove duplications 2025-02-27 15:52:32 -05:00
command_table_helper.h drm/amd/display/dc: Refactor remove duplications 2025-02-27 15:52:32 -05:00
command_table.c drm/amd/display: Fix uninitialized variables in DC 2024-04-26 17:22:44 -04:00
command_table.h
Makefile