]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Delete dead code in command_table_helper
authorJulian Parkin <julian.parkin@amd.com>
Fri, 26 Jul 2019 21:13:46 +0000 (17:13 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 23 Aug 2019 16:37:04 +0000 (11:37 -0500)
commit3f46acc6d887569771b9a17aba81f83e0988f879
treee2eb08447e947b61e924ae1175ce1a67c4892a65
parentba71740c230075da6344df09c5b0dbaa5b94d493
drm/amd/display: Delete dead code in command_table_helper

[Why]
dig_encoder_sel_to_atom will always return zero on any ASIC version
past DCE80 since programming of the FE selection is handled by
driver, but the translation code was left in the function, making
it look like a coding error.

[How]
Remove code that has no effect, and replace with a comment describing
why it returns zero.

Signed-off-by: Julian Parkin <julian.parkin@amd.com>
Reviewed-by: Wenjing Liu <Wenjing.Liu@amd.com>
Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/bios/dce110/command_table_helper_dce110.c
drivers/gpu/drm/amd/display/dc/bios/dce112/command_table_helper2_dce112.c
drivers/gpu/drm/amd/display/dc/bios/dce112/command_table_helper_dce112.c