]> asedeno.scripts.mit.edu Git - linux.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)
commit67427d4f10e765a18ac33b4008377ef365589501
treee2eb08447e947b61e924ae1175ce1a67c4892a65
parentb1f6d01c4a3b7eeb2eb035e79d425cd6a696fa45
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