diff options
Diffstat (limited to 'drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.c')
-rw-r--r-- | drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.c b/drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.c index d3d6b4cae1e6..ffeb34bee3af 100644 --- a/drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.c +++ b/drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.c | |||
@@ -592,23 +592,23 @@ static int mdp5_get_scanoutpos(struct drm_device *dev, unsigned int pipe, | |||
592 | return ret; | 592 | return ret; |
593 | } | 593 | } |
594 | 594 | ||
595 | static int mdp5_get_vblank_timestamp(struct drm_device *dev, unsigned int pipe, | 595 | static bool mdp5_get_vblank_timestamp(struct drm_device *dev, unsigned int pipe, |
596 | int *max_error, | 596 | int *max_error, |
597 | struct timeval *vblank_time, | 597 | struct timeval *vblank_time, |
598 | unsigned flags) | 598 | unsigned flags) |
599 | { | 599 | { |
600 | struct msm_drm_private *priv = dev->dev_private; | 600 | struct msm_drm_private *priv = dev->dev_private; |
601 | struct drm_crtc *crtc; | 601 | struct drm_crtc *crtc; |
602 | 602 | ||
603 | if (pipe < 0 || pipe >= priv->num_crtcs) { | 603 | if (pipe < 0 || pipe >= priv->num_crtcs) { |
604 | DRM_ERROR("Invalid crtc %d\n", pipe); | 604 | DRM_ERROR("Invalid crtc %d\n", pipe); |
605 | return -EINVAL; | 605 | return false; |
606 | } | 606 | } |
607 | 607 | ||
608 | crtc = priv->crtcs[pipe]; | 608 | crtc = priv->crtcs[pipe]; |
609 | if (!crtc) { | 609 | if (!crtc) { |
610 | DRM_ERROR("Invalid crtc %d\n", pipe); | 610 | DRM_ERROR("Invalid crtc %d\n", pipe); |
611 | return -EINVAL; | 611 | return false; |
612 | } | 612 | } |
613 | 613 | ||
614 | return drm_calc_vbltimestamp_from_scanoutpos(dev, pipe, max_error, | 614 | return drm_calc_vbltimestamp_from_scanoutpos(dev, pipe, max_error, |