]> 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)
commit22913bff41619094c082b334448b56a530005b25
treee2eb08447e947b61e924ae1175ce1a67c4892a65
parent0d77816f489c0c9141684ded21c7426d60493672
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