aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
diff options
context:
space:
mode:
authorSamuel Li <Samuel.Li@amd.com>2018-01-19 15:53:16 -0500
committerAlex Deucher <alexander.deucher@amd.com>2018-02-19 14:18:28 -0500
commitaa8e286a8af9fc9534aa7ec0be8122b16cf1fd41 (patch)
treea4872b9b6ee495ed49b4e0eb7cfb2dc4a2504147 /drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
parent0c16443a1b4b532a23465d7004be4ddf87df6b71 (diff)
drm/amdgpu: rename amdgpu_get_crtc_scanoutpos
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/amdgpu_display.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_display.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
index 05891988605c..c7569ec3e11b 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
@@ -90,9 +90,9 @@ static void amdgpu_display_flip_work_func(struct work_struct *__work)
90 * targeted by the flip 90 * targeted by the flip
91 */ 91 */
92 if (amdgpu_crtc->enabled && 92 if (amdgpu_crtc->enabled &&
93 (amdgpu_get_crtc_scanoutpos(adev->ddev, work->crtc_id, 0, 93 (amdgpu_display_get_crtc_scanoutpos(adev->ddev, work->crtc_id, 0,
94 &vpos, &hpos, NULL, NULL, 94 &vpos, &hpos, NULL, NULL,
95 &crtc->hwmode) 95 &crtc->hwmode)
96 & (DRM_SCANOUTPOS_VALID | DRM_SCANOUTPOS_IN_VBLANK)) == 96 & (DRM_SCANOUTPOS_VALID | DRM_SCANOUTPOS_IN_VBLANK)) ==
97 (DRM_SCANOUTPOS_VALID | DRM_SCANOUTPOS_IN_VBLANK) && 97 (DRM_SCANOUTPOS_VALID | DRM_SCANOUTPOS_IN_VBLANK) &&
98 (int)(work->target_vblank - 98 (int)(work->target_vblank -
@@ -781,10 +781,10 @@ bool amdgpu_display_crtc_scaling_mode_fixup(struct drm_crtc *crtc,
781 * unknown small number of scanlines wrt. real scanout position. 781 * unknown small number of scanlines wrt. real scanout position.
782 * 782 *
783 */ 783 */
784int amdgpu_get_crtc_scanoutpos(struct drm_device *dev, unsigned int pipe, 784int amdgpu_display_get_crtc_scanoutpos(struct drm_device *dev,
785 unsigned int flags, int *vpos, int *hpos, 785 unsigned int pipe, unsigned int flags, int *vpos,
786 ktime_t *stime, ktime_t *etime, 786 int *hpos, ktime_t *stime, ktime_t *etime,
787 const struct drm_display_mode *mode) 787 const struct drm_display_mode *mode)
788{ 788{
789 u32 vbl = 0, position = 0; 789 u32 vbl = 0, position = 0;
790 int vbl_start, vbl_end, vtotal, ret = 0; 790 int vbl_start, vbl_end, vtotal, ret = 0;