Star64_linux/drivers/gpu/drm/amd/display/amdgpu_dm
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.c drm/amdgpu: Fix amdgpu_display_supported_domains logic. 2019-07-30 23:48:32 -05:00
amdgpu_dm.h drm/amd/display: add functionality to grab DPRX CRC entries. 2019-07-18 14:18:09 -05:00
amdgpu_dm_color.c drm/amd/display: Rework CRTC color management 2019-06-22 09:34:13 -05:00
amdgpu_dm_crc.c drm/amd/display: add pipe CRC sources without disabling dithering. 2019-07-18 14:27:25 -05:00
amdgpu_dm_crc.h drm/amd/display: add pipe CRC sources without disabling dithering. 2019-07-18 14:27:25 -05:00
amdgpu_dm_debugfs.c Merge branch 'drm-next' into drm-next-5.3 2019-06-25 08:42:25 -05:00
amdgpu_dm_debugfs.h amdgpu_dm: no need to check return value of debugfs_create functions 2019-06-13 13:59:49 -05:00
amdgpu_dm_helpers.c Merge branch 'drm-next' into drm-next-5.3 2019-06-25 08:42:25 -05:00
amdgpu_dm_irq.c Merge branch 'drm-next' into drm-next-5.3 2019-06-25 08:42:25 -05:00
amdgpu_dm_irq.h
amdgpu_dm_mst_types.c drm/amd/display: Respect aux return values 2019-03-19 15:04:02 -05:00
amdgpu_dm_mst_types.h
amdgpu_dm_pp_smu.c drm/amd/display: Use switch table for dc_to_smu_clock_type 2019-08-02 10:17:57 -05:00
amdgpu_dm_services.c drm/amd: drop use of drmP.h in display/ 2019-06-10 23:00:20 +02:00
amdgpu_dm_trace.h drm/amd/display: Add tracing to dc 2018-12-05 17:49:49 -05:00
Makefile