diff options
author | Tom St Denis <tom.stdenis@amd.com> | 2017-05-15 10:46:17 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-05-24 18:22:30 -0400 |
commit | c990b718f98087fab16de2fa0090547c88217f92 (patch) | |
tree | 2308208525b57332c3b1d7e688846affaf8f745a /drivers/gpu/drm/amd/amdgpu/dce_v6_0.c | |
parent | e44143e31c1ce8322a3bc284804c593fdbffca07 (diff) |
drm/amd/amdgpu: Tidy up static int dce_v6_0_get_num_crtc()
Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/dce_v6_0.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/dce_v6_0.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/dce_v6_0.c b/drivers/gpu/drm/amd/amdgpu/dce_v6_0.c index e2a56c9283df..fae535bb6b07 100644 --- a/drivers/gpu/drm/amd/amdgpu/dce_v6_0.c +++ b/drivers/gpu/drm/amd/amdgpu/dce_v6_0.c | |||
@@ -514,21 +514,16 @@ static void dce_v6_0_set_vga_render_state(struct amdgpu_device *adev, | |||
514 | 514 | ||
515 | static int dce_v6_0_get_num_crtc(struct amdgpu_device *adev) | 515 | static int dce_v6_0_get_num_crtc(struct amdgpu_device *adev) |
516 | { | 516 | { |
517 | int num_crtc = 0; | ||
518 | |||
519 | switch (adev->asic_type) { | 517 | switch (adev->asic_type) { |
520 | case CHIP_TAHITI: | 518 | case CHIP_TAHITI: |
521 | case CHIP_PITCAIRN: | 519 | case CHIP_PITCAIRN: |
522 | case CHIP_VERDE: | 520 | case CHIP_VERDE: |
523 | num_crtc = 6; | 521 | return 6; |
524 | break; | ||
525 | case CHIP_OLAND: | 522 | case CHIP_OLAND: |
526 | num_crtc = 2; | 523 | return 2; |
527 | break; | ||
528 | default: | 524 | default: |
529 | num_crtc = 0; | 525 | return 0; |
530 | } | 526 | } |
531 | return num_crtc; | ||
532 | } | 527 | } |
533 | 528 | ||
534 | void dce_v6_0_disable_dce(struct amdgpu_device *adev) | 529 | void dce_v6_0_disable_dce(struct amdgpu_device *adev) |