projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e44143e
)
drm/amd/amdgpu: Tidy up static int dce_v6_0_get_num_crtc()
author
Tom St Denis
<
[email protected]
>
Mon, 15 May 2017 14:46:17 +0000
(10:46 -0400)
committer
Alex Deucher
<
[email protected]
>
Wed, 24 May 2017 22:22:30 +0000
(18:22 -0400)
Signed-off-by: Tom St Denis <
[email protected]
>
Reviewed-by: Alex Deucher <
[email protected]
>
Signed-off-by: Alex Deucher <
[email protected]
>
drivers/gpu/drm/amd/amdgpu/dce_v6_0.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/amdgpu/dce_v6_0.c
b/drivers/gpu/drm/amd/amdgpu/dce_v6_0.c
index e2a56c9283df604a43e82d384a04f8ff3dfb3257..fae535bb6b07e9e1059a2ba01f76c6cb4aa4c083 100644
(file)
--- 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,
static int dce_v6_0_get_num_crtc(struct amdgpu_device *adev)
{
- int num_crtc = 0;
-
switch (adev->asic_type) {
case CHIP_TAHITI:
case CHIP_PITCAIRN:
case CHIP_VERDE:
- num_crtc = 6;
- break;
+ return 6;
case CHIP_OLAND:
- num_crtc = 2;
- break;
+ return 2;
default:
-
num_crtc =
0;
+
return
0;
}
- return num_crtc;
}
void dce_v6_0_disable_dce(struct amdgpu_device *adev)