You need to sign in or sign up before continuing.
提交 c990b718 编写于 作者: T Tom St Denis 提交者: Alex Deucher

drm/amd/amdgpu: Tidy up static int dce_v6_0_get_num_crtc()

Signed-off-by: NTom St Denis <tom.stdenis@amd.com>
Reviewed-by: NAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
上级 e44143e3
...@@ -514,21 +514,16 @@ static void dce_v6_0_set_vga_render_state(struct amdgpu_device *adev, ...@@ -514,21 +514,16 @@ static void dce_v6_0_set_vga_render_state(struct amdgpu_device *adev,
static int dce_v6_0_get_num_crtc(struct amdgpu_device *adev) static int dce_v6_0_get_num_crtc(struct amdgpu_device *adev)
{ {
int num_crtc = 0;
switch (adev->asic_type) { switch (adev->asic_type) {
case CHIP_TAHITI: case CHIP_TAHITI:
case CHIP_PITCAIRN: case CHIP_PITCAIRN:
case CHIP_VERDE: case CHIP_VERDE:
num_crtc = 6; return 6;
break;
case CHIP_OLAND: case CHIP_OLAND:
num_crtc = 2; return 2;
break;
default: default:
num_crtc = 0; return 0;
} }
return num_crtc;
} }
void dce_v6_0_disable_dce(struct amdgpu_device *adev) void dce_v6_0_disable_dce(struct amdgpu_device *adev)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册