diff options
author | Samuel Li <Samuel.Li@amd.com> | 2018-01-19 16:06:41 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-02-19 14:18:29 -0500 |
commit | 734dd01d56bfc7ecd5323c8013bb97ffbbbf18ff (patch) | |
tree | 26426dc9f887f2b80a894d771379ad2681fae7da /drivers/gpu/drm/amd/amdgpu/dce_v8_0.c | |
parent | aa8e286a8af9fc9534aa7ec0be8122b16cf1fd41 (diff) |
drm/amdgpu: rename amdgpu_crtc_idx_to_irq_type
Add display to the name for consistency.
Signed-off-by: Samuel Li <Samuel.Li@amd.com>
Acked-by: Christian König <christian.koenig@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_v8_0.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/dce_v8_0.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/dce_v8_0.c b/drivers/gpu/drm/amd/amdgpu/dce_v8_0.c index 6f44146cd4c2..823a8c331da5 100644 --- a/drivers/gpu/drm/amd/amdgpu/dce_v8_0.c +++ b/drivers/gpu/drm/amd/amdgpu/dce_v8_0.c | |||
@@ -2441,7 +2441,8 @@ static void dce_v8_0_crtc_dpms(struct drm_crtc *crtc, int mode) | |||
2441 | amdgpu_atombios_crtc_blank(crtc, ATOM_DISABLE); | 2441 | amdgpu_atombios_crtc_blank(crtc, ATOM_DISABLE); |
2442 | dce_v8_0_vga_enable(crtc, false); | 2442 | dce_v8_0_vga_enable(crtc, false); |
2443 | /* Make sure VBLANK and PFLIP interrupts are still enabled */ | 2443 | /* Make sure VBLANK and PFLIP interrupts are still enabled */ |
2444 | type = amdgpu_crtc_idx_to_irq_type(adev, amdgpu_crtc->crtc_id); | 2444 | type = amdgpu_display_crtc_idx_to_irq_type(adev, |
2445 | amdgpu_crtc->crtc_id); | ||
2445 | amdgpu_irq_update(adev, &adev->crtc_irq, type); | 2446 | amdgpu_irq_update(adev, &adev->crtc_irq, type); |
2446 | amdgpu_irq_update(adev, &adev->pageflip_irq, type); | 2447 | amdgpu_irq_update(adev, &adev->pageflip_irq, type); |
2447 | drm_crtc_vblank_on(crtc); | 2448 | drm_crtc_vblank_on(crtc); |
@@ -3063,7 +3064,8 @@ static int dce_v8_0_crtc_irq(struct amdgpu_device *adev, | |||
3063 | { | 3064 | { |
3064 | unsigned crtc = entry->src_id - 1; | 3065 | unsigned crtc = entry->src_id - 1; |
3065 | uint32_t disp_int = RREG32(interrupt_status_offsets[crtc].reg); | 3066 | uint32_t disp_int = RREG32(interrupt_status_offsets[crtc].reg); |
3066 | unsigned irq_type = amdgpu_crtc_idx_to_irq_type(adev, crtc); | 3067 | unsigned int irq_type = amdgpu_display_crtc_idx_to_irq_type(adev, |
3068 | crtc); | ||
3067 | 3069 | ||
3068 | switch (entry->src_data[0]) { | 3070 | switch (entry->src_data[0]) { |
3069 | case 0: /* vblank */ | 3071 | case 0: /* vblank */ |