linux_dsm_epyc7002/drivers/gpu/drm/amd/display
Leo Li d9ec5cfd5a drm/amd/display: Use switch table for dc_to_smu_clock_type
Using a static int array will cause errors if the given dm_pp_clk_type
is out-of-bounds. For robustness, use a switch table, with a default
case to handle all invalid values.

v2: 0 is a valid clock type for smu_clk_type. Return SMU_CLK_COUNT
    instead on invalid mapping.

Signed-off-by: Leo Li <sunpeng.li@amd.com>
Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2019-08-02 10:17:57 -05:00
..
amdgpu_dm drm/amd/display: Use switch table for dc_to_smu_clock_type 2019-08-02 10:17:57 -05:00
dc drm/amd/display: Support uclk switching for DCN2 2019-07-30 23:48:33 -05:00
include drm/amd/display: handle active dongle port type is DP++ or DP case 2019-07-18 14:27:27 -05:00
modules drm/amd/display: Optimize gamma calculations 2019-07-18 14:27:25 -05:00
Kconfig drm/amd/display: Add drm_audio_component support to amdgpu_dm 2019-07-11 14:37:24 -05:00
Makefile drm/amd/display: move clk_mgr files to right place 2019-05-31 10:39:31 -05:00
TODO drm/amd/display: Convert remaining loggers off dc_logger 2018-07-13 14:48:42 -05:00